fix tabs
[gst-pulse.git] / src / plugin.c
blob3207fbcee6ab279df7fafccf5637e8dfd466305f
1 /* $Id$ */
3 /***
4 This file is part of gst-pulse.
6 gst-pulse is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as
8 published by the Free Software Foundation; either version 2.1 of the
9 License, or (at your option) any later version.
11 gst-pulse is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with gst-pulse; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 USA.
20 ***/
22 #ifdef HAVE_CONFIG_H
23 #include "config.h"
24 #endif
26 #include "pulsesink.h"
27 #include "pulsesrc.h"
28 #include "pulsemixer.h"
30 GST_DEBUG_CATEGORY(pulse_debug);
32 static gboolean plugin_init(GstPlugin* plugin) {
34 if (!gst_element_register(plugin, "pulsesink", GST_RANK_PRIMARY+10, GST_TYPE_PULSESINK))
35 return FALSE;
37 if (!gst_element_register(plugin, "pulsesrc", GST_RANK_PRIMARY+10, GST_TYPE_PULSESRC))
38 return FALSE;
40 if (!gst_element_register(plugin, "pulsemixer", GST_RANK_NONE, GST_TYPE_PULSEMIXER))
41 return FALSE;
43 GST_DEBUG_CATEGORY_INIT(pulse_debug, "pulse", 0, "PulseAudio elements");
44 return TRUE;
47 GST_PLUGIN_DEFINE(
48 GST_VERSION_MAJOR,
49 GST_VERSION_MINOR,
50 "pulseaudio",
51 "PulseAudio Elements Plugin",
52 plugin_init,
53 "0.10."VERSION,
54 "LGPL",
55 "pulseaudio",
56 "http://0pointer.de/lennart/projects/gst-pulse/"