summaryrefslogtreecommitdiffstats
path: root/sys/sunaudio/gstsunaudiomixerctrl.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2006-12-09 16:17:33 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-12-09 16:17:33 +0000
commit6e9ee0d19a736e2a010c5795c6941ebf55411328 (patch)
treeb62a871d0e8807b0f87b66cb2d4a6fc1797bfb7e /sys/sunaudio/gstsunaudiomixerctrl.c
parentf3bdb649718c911d6227d10e9280d042dca0ed92 (diff)
sys/sunaudio/: Use the sunaudio debug category.
Original commit message from CVS: * sys/sunaudio/gstsunaudiomixerctrl.c: * sys/sunaudio/gstsunaudiosrc.c: Use the sunaudio debug category. * sys/sunaudio/gstsunaudiosink.c: (gst_sunaudiosink_finalize), (gst_sunaudiosink_class_init), (gst_sunaudiosink_init), (gst_sunaudiosink_set_property), (gst_sunaudiosink_get_property), (gst_sunaudiosink_open), (gst_sunaudiosink_close), (gst_sunaudiosink_prepare), (gst_sunaudio_sink_do_delay), (gst_sunaudiosink_write), (gst_sunaudiosink_delay), (gst_sunaudiosink_reset): * sys/sunaudio/gstsunaudiosink.h: Uses the sunaudio debug category for all debug output Implements the _delay() callback to synchronise video playback better Change the segtotal and segsize values back to the parent class defaults (taken from buffer_time and latency_times of 200ms and 10ms respectively) Measure the samples written to the device vs. played. Keep track of segments in the device by writing empty eof frames, and sleep using a GCond when we get too far ahead and risk overrunning the sink's ringbuffer. Fixes: #360673
Diffstat (limited to 'sys/sunaudio/gstsunaudiomixerctrl.c')
-rw-r--r--sys/sunaudio/gstsunaudiomixerctrl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sunaudio/gstsunaudiomixerctrl.c b/sys/sunaudio/gstsunaudiomixerctrl.c
index 39df6ff5..09aa3da7 100644
--- a/sys/sunaudio/gstsunaudiomixerctrl.c
+++ b/sys/sunaudio/gstsunaudiomixerctrl.c
@@ -35,6 +35,9 @@
#include "gstsunaudiomixerctrl.h"
#include "gstsunaudiomixertrack.h"
+GST_DEBUG_CATEGORY_EXTERN (sunaudio_debug);
+#define GST_CAT_DEFAULT sunaudio_debug
+
#define SCALE_FACTOR 2.55 /* 255/100 */
static gboolean