Imported Upstream version 0.10.23
[profile/ivi/gst-plugins-bad.git] / gst / audiovisualizers / plugin.c
1 /* GStreamer
2  * Copyright (C) <2011> Stefan Kost <ensonic@users.sf.net>
3  *
4  * plugin.c: scopes plugin
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24 #include <gst/gst.h>
25 #include <gst/controller/gstcontroller.h>
26
27 #include "gstspacescope.h"
28 #include "gstspectrascope.h"
29 #include "gstsynaescope.h"
30 #include "gstwavescope.h"
31
32 static gboolean
33 plugin_init (GstPlugin * plugin)
34 {
35   gboolean res = TRUE;
36
37   /* initialize gst controller library */
38   gst_controller_init (NULL, NULL);
39
40   res &= gst_space_scope_plugin_init (plugin);
41   res &= gst_spectra_scope_plugin_init (plugin);
42   res &= gst_synae_scope_plugin_init (plugin);
43   res &= gst_wave_scope_plugin_init (plugin);
44   return res;
45 }
46
47 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
48     GST_VERSION_MINOR,
49     "audiovisualizers",
50     "Creates video visualizations of audio input",
51     plugin_init, VERSION, "GPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)