Debian Codegraph @

sys/osxaudio/gstosxaudio.c

raw
1 /*
2 * GStreamer
3 * Copyright (C) 1999 Erik Walthinsen <[email protected]>
4 * Copyright (C) 2007,2008 Pioneers of the Inevitable <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library 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 GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 * The development of this code was made possible due to the involvement of
22 * Pioneers of the Inevitable, the creators of the Songbird Music player
23 *
24 */
25
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29
30 #include "gstosxaudioelement.h"
31 #include "gstosxaudiosink.h"
32 #include "gstosxaudiosrc.h"
33 #include "gstatdec.h"
34 #include "gstatenc.h"
35 #if TARGET_OS_OSX
36 #include "gstosxaudiodeviceprovider.h"
37 #endif
38
39 static gboolean
40 plugin_init (GstPlugin * plugin)
41 {
42 gboolean ret = FALSE;
43
44 ret |= GST_ELEMENT_REGISTER (osxaudiosrc, plugin);
45 ret |= GST_ELEMENT_REGISTER (osxaudiosink, plugin);
46 ret |= GST_ELEMENT_REGISTER (atdec, plugin);
47 ret |= GST_ELEMENT_REGISTER (atenc, plugin);
48 #if TARGET_OS_OSX
49 ret |= GST_DEVICE_PROVIDER_REGISTER (osxaudiodeviceprovider, plugin);
50 #endif
51
52 return ret;
53 }
54
55 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
56 GST_VERSION_MINOR,
57 osxaudio,
58 "OSX (Mac OS X) audio support for GStreamer",
59 plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)