(Android) Force audio input control rate in OpenSL ES driver

This commit is contained in:
twinaphex 2012-10-30 03:50:18 +01:00
parent 492bbc7d78
commit 033e94acfd

View File

@ -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: