sys/osxaudio/gstosxaudio.c: Revert accidental element rename from testing.
[platform/upstream/gst-plugins-good.git] / sys / osxaudio / gstosxaudio.c
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  * Copyright (C) 2007,2008 Pioneers of the Inevitable <songbird@songbirdnest.com>
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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  * 
20  * The development of this code was made possible due to the involvement of 
21  * Pioneers of the Inevitable, the creators of the Songbird Music player
22  * 
23  */
24
25 /**
26  * SECTION:element-osxaudiosink
27  * @short_description: play audio to an CoreAudio device
28  *
29  * <refsect2>
30  * <para>
31  * This element renders raw audio samples using the CoreAudio api.
32  * </para>
33  * <title>Example pipelines</title>
34  * <para>
35  * Play an Ogg/Vorbis file.
36  * </para>
37  * <programlisting>
38  * gst-launch -v filesrc location=sine.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! osxaudiosink
39  * </programlisting>
40  * </refsect2>
41  *
42  * Last reviewed on 2006-03-01 (0.10.4)
43  */
44
45
46 #ifdef HAVE_CONFIG_H
47 #include "config.h"
48 #endif
49
50
51 #include "gstosxaudioelement.h"
52 #include "gstosxaudiosink.h"
53 #include "gstosxaudiosrc.h"
54
55 static gboolean
56 plugin_init (GstPlugin * plugin)
57 {
58
59   if (!gst_element_register (plugin, "osxaudiosink", GST_RANK_PRIMARY + 1,
60           GST_TYPE_OSX_AUDIO_SINK)) {
61     return FALSE;
62   }
63   if (!gst_element_register (plugin, "osxaudiosrc", GST_RANK_PRIMARY + 1,
64           GST_TYPE_OSX_AUDIO_SRC)) {
65     return FALSE;
66   }
67
68   return TRUE;
69 }
70
71 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
72     GST_VERSION_MINOR,
73     "osxaudio",
74     "OSX (Mac OS X) audio support for GStreamer",
75     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)