From 76ca09c52f8e8da79af31bda5825adb56d308745 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 29 Dec 2018 14:22:32 +1000 Subject: [PATCH] Web Audio: Call the onStop callback when the device is stopped. --- mini_al.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mini_al.h b/mini_al.h index 45d20ec6..a7d1cd77 100644 --- a/mini_al.h +++ b/mini_al.h @@ -19082,6 +19082,11 @@ mal_result mal_device__stop_backend__webaudio(mal_device* pDevice) mal.get_device_by_index($0).webaudio.suspend(); }, pDevice->webaudio.index); + mal_stop_proc onStop = pDevice->onStop; + if (onStop) { + onStop(pDevice); + } + return MAL_SUCCESS; }