From 033e94acfd5f57a0f356ff12b30d92a3e40a4c16 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 30 Oct 2012 03:50:18 +0100 Subject: [PATCH] (Android) Force audio input control rate in OpenSL ES driver --- audio/opensl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audio/opensl.c b/audio/opensl.c index 36ba3c1210..3733b31d68 100644 --- a/audio/opensl.c +++ b/audio/opensl.c @@ -169,6 +169,9 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency) GOTO_IF_FAIL(SLObjectItf_GetInterface(sl->buffer_queue_object, SL_IID_PLAY, &sl->player)); GOTO_IF_FAIL(SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_PLAYING)); + g_settings.audio.rate_control_delta = 0.006; + g_settings.audio.rate_control = true; + return sl; error: