(OpenSL) Fix issues with cores using threaded audio - audio thread

would freeze waiting for a signal while toggling the menu
This commit is contained in:
twinaphex 2018-03-24 14:48:58 +01:00
parent 1fb7d14b36
commit 54708a944a

View File

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