From 9cc7e6a74d61f6d5041d8cfe173b737336799a1f Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 27 Sep 2012 19:24:50 +0200 Subject: [PATCH] opensles: change the defaults to use 20 ms ringbuffer segments In my nexus7 seems that the internal min buffer size is 20 ms so make our segments match. --- sys/opensles/openslessink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/opensles/openslessink.c b/sys/opensles/openslessink.c index 254a03cc04..19298ff66e 100644 --- a/sys/opensles/openslessink.c +++ b/sys/opensles/openslessink.c @@ -269,4 +269,6 @@ gst_opensles_sink_init (GstOpenSLESSink * sink, GstOpenSLESSinkClass * gclass) _opensles_query_capabilities (sink); gst_base_audio_sink_set_provide_clock (GST_BASE_AUDIO_SINK (sink), TRUE); + GST_BASE_AUDIO_SINK (sink)->buffer_time = 400000; + GST_BASE_AUDIO_SINK (sink)->latency_time = 20000; }