mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Web Audio: Call the onStop callback when the device is stopped.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user