(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:
parent
1fb7d14b36
commit
54708a944a
|
@ -200,6 +200,9 @@ error:
|
||||||
static bool sl_stop(void *data)
|
static bool sl_stop(void *data)
|
||||||
{
|
{
|
||||||
sl_t *sl = (sl_t*)data;
|
sl_t *sl = (sl_t*)data;
|
||||||
|
|
||||||
|
opensl_callback((SLAndroidSimpleBufferQueueItf) 0, data);
|
||||||
|
|
||||||
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED)
|
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED)
|
||||||
== SL_RESULT_SUCCESS) ? true : false;
|
== SL_RESULT_SUCCESS) ? true : false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue