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.
This commit is contained in:
Josep Torra 2012-09-27 19:24:50 +02:00 committed by Sebastian Dröge
parent 97a1ccfab1
commit 9cc7e6a74d

View file

@ -269,4 +269,6 @@ gst_opensles_sink_init (GstOpenSLESSink * sink, GstOpenSLESSinkClass * gclass)
_opensles_query_capabilities (sink); _opensles_query_capabilities (sink);
gst_base_audio_sink_set_provide_clock (GST_BASE_AUDIO_SINK (sink), TRUE); 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;
} }