diff options
author | Tristan Matthews <tristan@sat.qc.ca> | 2008-08-07 08:47:40 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2008-08-07 08:47:40 +0000 |
commit | 3fcdc01db8d9bfe33b05629a11262a40dfcb410d (patch) | |
tree | 83199e89a7373f3918b8e46e5c8f3bb08b809557 /ext/jack/gstjack.c | |
parent | 020d3ca531e152c3986b00474b851cbc216c806f (diff) | |
download | gst-plugins-bad-3fcdc01db8d9bfe33b05629a11262a40dfcb410d.tar.gz gst-plugins-bad-3fcdc01db8d9bfe33b05629a11262a40dfcb410d.tar.bz2 gst-plugins-bad-3fcdc01db8d9bfe33b05629a11262a40dfcb410d.zip |
ext/jack/: Add a jackaudiosrc. Refactor sink slightly for better code reuse.
Original commit message from CVS:
patch by: Tristan Matthews <tristan@sat.qc.ca>
* ext/jack/Makefile.am:
* ext/jack/gstjack.c:
* ext/jack/gstjackaudioclient.c:
* ext/jack/gstjackaudiosink.c:
* ext/jack/gstjackaudiosink.h:
* ext/jack/gstjackaudiosrc.c:
* ext/jack/gstjackaudiosrc.h:
* ext/jack/gstjackringbuffer.h:
Add a jackaudiosrc. Refactor sink slightly for better code reuse.
Fixes #545197.
Diffstat (limited to 'ext/jack/gstjack.c')
-rw-r--r-- | ext/jack/gstjack.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c index 72f501d0..96afd06e 100644 --- a/ext/jack/gstjack.c +++ b/ext/jack/gstjack.c @@ -21,11 +21,34 @@ #include "config.h" #endif +#include "gstjackaudiosrc.h" #include "gstjackaudiosink.h" +GType +gst_jack_connect_get_type (void) +{ + static GType jack_connect_type = 0; + static const GEnumValue jack_connect[] = { + {GST_JACK_CONNECT_NONE, + "Don't automatically connect ports to physical ports", "none"}, + {GST_JACK_CONNECT_AUTO, + "Automatically connect ports to physical ports", "auto"}, + {0, NULL, NULL}, + }; + + if (!jack_connect_type) { + jack_connect_type = g_enum_register_static ("GstJackConnect", jack_connect); + } + return jack_connect_type; +} + + static gboolean plugin_init (GstPlugin * plugin) { + if (!gst_element_register (plugin, "jackaudiosrc", GST_RANK_PRIMARY, + GST_TYPE_JACK_AUDIO_SRC)) + return FALSE; if (!gst_element_register (plugin, "jackaudiosink", GST_RANK_PRIMARY, GST_TYPE_JACK_AUDIO_SINK)) return FALSE; |