From 54708a944a59d565bb38d4df03f0617e188219f8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 24 Mar 2018 14:48:58 +0100 Subject: [PATCH] (OpenSL) Fix issues with cores using threaded audio - audio thread would freeze waiting for a signal while toggling the menu --- audio/drivers/opensl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audio/drivers/opensl.c b/audio/drivers/opensl.c index 113bce3567..e1be0f4614 100644 --- a/audio/drivers/opensl.c +++ b/audio/drivers/opensl.c @@ -200,6 +200,9 @@ error: static bool sl_stop(void *data) { sl_t *sl = (sl_t*)data; + + opensl_callback((SLAndroidSimpleBufferQueueItf) 0, data); + sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED) == SL_RESULT_SUCCESS) ? true : false;