1 /*
2 * GStreamer
3 * Copyright (C) 2006 Stefan Kost <ensonic@users.sf.net>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include <gst/gst.h>
26
27 #include "audiopanorama.h"
28 #include "audioinvert.h"
29 #include "audiokaraoke.h"
30 #include "audioamplify.h"
31 #include "audiodynamic.h"
32 #include "audiocheblimit.h"
33 #include "audiochebband.h"
34 #include "audioiirfilter.h"
35 #include "audiowsincband.h"
36 #include "audiowsinclimit.h"
37 #include "audiofirfilter.h"
38 #include "audioecho.h"
39 #include "gstscaletempo.h"
40 #include "gststereo.h"
41
42 /* entry point to initialize the plug-in
43 * initialize the plug-in itself
44 * register the element factories and pad templates
45 * register the features
46 */
47 static gboolean
plugin_init(GstPlugin * plugin)48 plugin_init (GstPlugin * plugin)
49 {
50 gboolean ret = FALSE;
51
52 #ifdef OHOS_EXT_FUNC
53 /* ohos.ext.func.0032 remove the unused features */
54 ret |= GST_ELEMENT_REGISTER (scaletempo, plugin);
55 #else
56 ret |= GST_ELEMENT_REGISTER (audiopanorama, plugin);
57 ret |= GST_ELEMENT_REGISTER (audioinvert, plugin);
58 ret |= GST_ELEMENT_REGISTER (audiokaraoke, plugin);
59 ret |= GST_ELEMENT_REGISTER (audioamplify, plugin);
60 ret |= GST_ELEMENT_REGISTER (audiodynamic, plugin);
61 ret |= GST_ELEMENT_REGISTER (audiocheblimit, plugin);
62 ret |= GST_ELEMENT_REGISTER (audiochebband, plugin);
63 ret |= GST_ELEMENT_REGISTER (audioiirfilter, plugin);
64 ret |= GST_ELEMENT_REGISTER (audiowsinclimit, plugin);
65 ret |= GST_ELEMENT_REGISTER (audiowsincband, plugin);
66 ret |= GST_ELEMENT_REGISTER (audiofirfilter, plugin);
67 ret |= GST_ELEMENT_REGISTER (audioecho, plugin);
68 ret |= GST_ELEMENT_REGISTER (scaletempo, plugin);
69 ret |= GST_ELEMENT_REGISTER (stereo, plugin);
70 #endif
71
72 return ret;
73 }
74
75 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
76 GST_VERSION_MINOR,
77 audiofx,
78 "Audio effects plugin",
79 plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
80