opensles: Remove hard-coded buffer-/latency-time values

These were originally required in early Android versions, but are no
longer needed.
This commit is contained in:
Arun Raghavan 2020-04-29 16:43:06 -04:00 committed by Arun Raghavan
parent 8afc283b51
commit d0776faf47
2 changed files with 0 additions and 9 deletions

View file

@ -289,8 +289,4 @@ gst_opensles_sink_init (GstOpenSLESSink * sink)
_opensles_query_capabilities (sink);
gst_audio_base_sink_set_provide_clock (GST_AUDIO_BASE_SINK (sink), TRUE);
/* Override some default values to fit on the AudioFlinger behaviour of
* processing 20ms buffers as minimum buffer size. */
GST_AUDIO_BASE_SINK (sink)->buffer_time = 200000;
GST_AUDIO_BASE_SINK (sink)->latency_time = 20000;
}

View file

@ -144,10 +144,5 @@ gst_opensles_src_class_init (GstOpenSLESSrcClass * klass)
static void
gst_opensles_src_init (GstOpenSLESSrc * src)
{
/* Override some default values to fit on the AudioFlinger behaviour of
* processing 20ms buffers as minimum buffer size. */
GST_AUDIO_BASE_SRC (src)->buffer_time = 200000;
GST_AUDIO_BASE_SRC (src)->latency_time = 20000;
src->preset = DEFAULT_PRESET;
}