1 /* GStreamer
2 * Copyright (C) 2005 Sebastien Moutte <sebastien@moutte.net>
3 * Copyright (C) 2007 Pioneers of the Inevitable <songbird@songbirdnest.com>
4 *
5 * gstdirectsoundplugin.c:
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 *
22 *
23 * The development of this code was made possible due to the involvement
24 * of Pioneers of the Inevitable, the creators of the Songbird Music player
25 *
26 */
27 
28 #ifdef HAVE_CONFIG_H
29 #include "config.h"
30 #endif
31 
32 #include "gstdirectsoundsrc.h"
33 #include "gstdirectsounddevice.h"
34 
35 static gboolean
plugin_init(GstPlugin * plugin)36 plugin_init (GstPlugin * plugin)
37 {
38   if (!gst_element_register (plugin, "directsoundsrc", GST_RANK_SECONDARY,
39           GST_TYPE_DIRECTSOUND_SRC))
40     return FALSE;
41 
42   if (!gst_device_provider_register (plugin, "directsoundsrcdeviceprovider",
43           GST_RANK_PRIMARY, GST_TYPE_DIRECTSOUND_DEVICE_PROVIDER))
44     return FALSE;
45 
46 
47   return TRUE;
48 }
49 
50 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
51     GST_VERSION_MINOR,
52     directsoundsrc,
53     "Direct Sound Source plugin library",
54     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
55