Commit 76ca09c5 authored by David Reid's avatar David Reid

Web Audio: Call the onStop callback when the device is stopped.

parent f7c184ea
...@@ -19082,6 +19082,11 @@ mal_result mal_device__stop_backend__webaudio(mal_device* pDevice) ...@@ -19082,6 +19082,11 @@ mal_result mal_device__stop_backend__webaudio(mal_device* pDevice)
mal.get_device_by_index($0).webaudio.suspend(); mal.get_device_by_index($0).webaudio.suspend();
}, pDevice->webaudio.index); }, pDevice->webaudio.index);
mal_stop_proc onStop = pDevice->onStop;
if (onStop) {
onStop(pDevice);
}
return MAL_SUCCESS; return MAL_SUCCESS;
} }
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