Commit ed1bcd1a authored by David Reid's avatar David Reid

OpenSL: Do not explicitly set the device state to stopped.

This change makes it consistent with iOS.
parent 666f39c9
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment