summaryrefslogtreecommitdiffstats
path: root/sys/sunaudio/gstsunaudiosink.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-01-23 11:06:34 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-01-23 11:06:34 +0000
commit948743037b36598a38a04889524fb93b8da65673 (patch)
treeed61354e9c82224ea87be0edf3eabac1948b27a0 /sys/sunaudio/gstsunaudiosink.c
parent00c44209d8e70059ed450310e4ced574d4d786a3 (diff)
sys/sunaudio/: Export functions that are needed in other parts of the code, makes the mixer actually work; adjust mag...
Original commit message from CVS: Reviewed by: Tim-Philipp Müller <tim at centricular dot net> * sys/sunaudio/gstsunaudiomixerctrl.c: * sys/sunaudio/gstsunaudiosink.c: (gst_sunaudiosink_init): Export functions that are needed in other parts of the code, makes the mixer actually work; adjust magic minimum buffer-time value from 3ms to 5ms to work around stuttering during mp3 playback (#327765).
Diffstat (limited to 'sys/sunaudio/gstsunaudiosink.c')
-rw-r--r--sys/sunaudio/gstsunaudiosink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sunaudio/gstsunaudiosink.c b/sys/sunaudio/gstsunaudiosink.c
index 9ddf0a21..f791c4a5 100644
--- a/sys/sunaudio/gstsunaudiosink.c
+++ b/sys/sunaudio/gstsunaudiosink.c
@@ -192,8 +192,8 @@ gst_sunaudiosink_init (GstSunAudioSink * sunaudiosink)
sunaudiosink->buffer_size = 8180;
/*
- * Reset the buffer-time to 3ms instead of the normal default of 500us
- * (6 times larger, in other words).
+ * Reset the buffer-time to 5ms instead of the normal default of 500us
+ * (10 times larger, in other words).
*
* Setting a larger buffer causes the sinesrc to not stutter with this
* sink. The fact that SunAudio requires a larger buffer should be
@@ -204,8 +204,8 @@ gst_sunaudiosink_init (GstSunAudioSink * sunaudiosink)
g_value_init (&gvalue, G_TYPE_INT64);
g_object_get_property (G_OBJECT (sunaudiosink), "buffer-time", &gvalue);
buffer_time = g_value_get_int64 (&gvalue);
- if (buffer_time < 3000000) {
- g_value_set_int64 (&gvalue, 3000000);
+ if (buffer_time < 5000000) {
+ g_value_set_int64 (&gvalue, 5000000);
g_object_set_property (G_OBJECT (sunaudiosink), "buffer-time", &gvalue);
}