summaryrefslogtreecommitdiffstats
path: root/ext/hal/hal.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-03-01 21:50:36 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-03-01 21:50:36 +0000
commit8b65d9d1829c454c3a229062184f00f663486c30 (patch)
tree281d9c85c9378c7b5bfb30b1c11c54fe77075d29 /ext/hal/hal.h
parent84c6cb989a6d124debe22a9b587e0b98a153ba85 (diff)
ext/hal/: Having NULL as UDI previously selected the default sink/src. Change this back but mention it in the debug o...
Original commit message from CVS: * ext/hal/gsthalaudiosink.c: (do_toggle_element): * ext/hal/gsthalaudiosrc.c: (do_toggle_element): Having NULL as UDI previously selected the default sink/src. Change this back but mention it in the debug output. * ext/hal/hal.c: (gst_hal_get_alsa_element), (gst_hal_get_oss_element), (gst_hal_get_string), (gst_hal_render_bin_from_udi), (gst_hal_get_audio_sink), (gst_hal_get_audio_src): * ext/hal/hal.h: Refactor a bit, check all error conditions, greatly improve debugging and fix some possible memory leaks. Also implement OSS support and allow specifying an UDI that points to a real device. For this the child device which supports ALSA (preferred) or OSS is used. As a side effect this makes it impossible now to get a alsasink in halaudiosrc and a alsasrc in halaudiosink.
Diffstat (limited to 'ext/hal/hal.h')
-rw-r--r--ext/hal/hal.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/ext/hal/hal.h b/ext/hal/hal.h
index 3d5bb05b..9cc5aed3 100644
--- a/ext/hal/hal.h
+++ b/ext/hal/hal.h
@@ -31,10 +31,17 @@
G_BEGIN_DECLS
-GstElement * gst_hal_render_bin_from_udi (const gchar *udi);
+typedef enum
+{
+ GST_HAL_AUDIOSINK,
+ GST_HAL_AUDIOSRC
+} GstHalDeviceType;
-GstElement * gst_hal_get_audio_sink (const gchar *udi);
-GstElement * gst_hal_get_audio_src (const gchar *udi);
+GstElement *gst_hal_render_bin_from_udi (const gchar * udi,
+ GstHalDeviceType type);
+
+GstElement *gst_hal_get_audio_sink (const gchar * udi);
+GstElement *gst_hal_get_audio_src (const gchar * udi);
G_END_DECLS