1 /*************************************************************************
2     FlacCodecPlugin.cpp  -  import/export of FLAC data
3                              -------------------
4     begin                : Tue Feb 28 2004
5     copyright            : (C) 2004 by Thomas Eschenbacher
6     email                : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #include "config.h"
19 
20 #include <KLocalizedString>
21 
22 #include "libkwave/PluginManager.h"
23 
24 #include "FlacCodecPlugin.h"
25 #include "FlacDecoder.h"
26 #include "FlacEncoder.h"
27 
28 // static instance of the codec container
29 Kwave::CodecPlugin::Codec Kwave::FlacCodecPlugin::m_codec = EMPTY_CODEC;
30 
KWAVE_PLUGIN(codec_flac,FlacCodecPlugin)31 KWAVE_PLUGIN(codec_flac, FlacCodecPlugin)
32 
33 /***************************************************************************/
34 Kwave::FlacCodecPlugin::FlacCodecPlugin(QObject *parent,
35                                         const QVariantList &args)
36     :Kwave::CodecPlugin(parent, args, m_codec)
37 {
38 }
39 
40 /***************************************************************************/
~FlacCodecPlugin()41 Kwave::FlacCodecPlugin::~FlacCodecPlugin()
42 {
43 }
44 
45 /***************************************************************************/
createDecoder()46 QList<Kwave::Decoder *> Kwave::FlacCodecPlugin::createDecoder()
47 {
48     return singleDecoder<Kwave::FlacDecoder>();
49 }
50 
51 /***************************************************************************/
createEncoder()52 QList<Kwave::Encoder *> Kwave::FlacCodecPlugin::createEncoder()
53 {
54     return singleEncoder<Kwave::FlacEncoder>();
55 }
56 
57 /***************************************************************************/
58 #include "FlacCodecPlugin.moc"
59 /***************************************************************************/
60 /***************************************************************************/
61