From ed1bcd1a9982c884557fdca508dc3231ca3cb096 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 14 Dec 2018 18:52:45 +1000 Subject: [PATCH] OpenSL: Do not explicitly set the device state to stopped. This change makes it consistent with iOS. --- mini_al.h | 1 - 1 file changed, 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index 2793baab..4dbc17f8 100644 --- a/mini_al.h +++ b/mini_al.h @@ -18580,7 +18580,6 @@ mal_result mal_device__stop_backend__opensl(mal_device* pDevice) MAL_OPENSL_BUFFERQUEUE(pDevice->opensl.pBufferQueue)->Clear((SLAndroidSimpleBufferQueueItf)pDevice->opensl.pBufferQueue); // Make sure the client is aware that the device has stopped. There may be an OpenSL|ES callback for this, but I haven't found it. - mal_device__set_state(pDevice, MAL_STATE_STOPPED); mal_stop_proc onStop = pDevice->onStop; if (onStop) { onStop(pDevice);