diff options
author | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2006-04-28 14:55:20 +0000 |
---|---|---|
committer | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2006-04-28 14:55:20 +0000 |
commit | 9f12811bb2272b72b1f03afaa1d97182fbf45618 (patch) | |
tree | 11298ecf9cd233e5078128e4ea6274944b7107e7 /sys/osxaudio/gstosxaudiosink.c | |
parent | 4c49dc04f200450af32913ada3be9fa7c8c03a2f (diff) |
sys/osxaudio/gstosxaudiosink.c: Register osxaudiosrc to the plugin.
Original commit message from CVS:
2006-04-28 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/osxaudio/gstosxaudiosink.c:
(plugin_init):
Register osxaudiosrc to the plugin.
* sys/osxaudio/gstosxaudiosrc.c:
(gst_osx_audio_src_osxelement_do_init),
(gst_osx_audio_src_base_init), (gst_osx_audio_src_class_init),
(gst_osx_audio_src_init), (gst_osx_audio_src_set_property),
(gst_osx_audio_src_get_property),
(gst_osx_audio_src_create_ringbuffer), (gst_osx_audio_src_io_proc),
(gst_osx_audio_src_osxelement_init):
* sys/osxaudio/gstosxaudiosrc.h:
Port of osxaudiosrc to 0.10.
* sys/osxaudio/Makefile.am:
Add osxaudiosrc
Diffstat (limited to 'sys/osxaudio/gstosxaudiosink.c')
-rw-r--r-- | sys/osxaudio/gstosxaudiosink.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/osxaudio/gstosxaudiosink.c b/sys/osxaudio/gstosxaudiosink.c index b58d34b3..f880bf70 100644 --- a/sys/osxaudio/gstosxaudiosink.c +++ b/sys/osxaudio/gstosxaudiosink.c @@ -61,6 +61,8 @@ #include <gst/gst.h> #include <CoreAudio/CoreAudio.h> #include "gstosxaudiosink.h" +#include "gstosxaudiosrc.h" + #include "gstosxaudioelement.h" GST_DEBUG_CATEGORY_STATIC (osx_audiosink_debug); @@ -91,7 +93,8 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_CAPS ("audio/x-raw-float, " "endianness = (int) {" G_STRINGIFY (G_BYTE_ORDER) " }, " "signed = (boolean) { TRUE }, " - "width = (int) 32, " "rate = (int) 44100, " "channels = (int) 2") + "width = (int) 32, " + "depth = (int) 32, " "rate = (int) 44100, " "channels = (int) 2") ); static void gst_osx_audio_sink_set_property (GObject * object, guint prop_id, @@ -321,8 +324,12 @@ gst_osx_audio_sink_osxelement_init (gpointer g_iface, gpointer iface_data) static gboolean plugin_init (GstPlugin * plugin) { - return gst_element_register (plugin, "osxaudiosink", + gboolean ret; + + ret = gst_element_register (plugin, "osxaudiosink", GST_RANK_NONE, GST_TYPE_OSX_AUDIO_SINK); + return ret && gst_element_register (plugin, "osxaudiosrc", + GST_RANK_NONE, GST_TYPE_OSX_AUDIO_SRC); } /* this is the structure that gstreamer looks for to register plugins |