From bfb1f07d72e8743413ff1071acca081aefdc4639 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 29 Dec 2018 13:51:21 +1000 Subject: [PATCH] AAudio: 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 328eb0e5..284c33f0 100644 --- a/mini_al.h +++ b/mini_al.h @@ -18254,6 +18254,11 @@ mal_result mal_device__start_backend__aaudio(mal_device* pDevice) } } + mal_stop_proc onStop = pDevice->onStop; + if (onStop) { + onStop(pDevice); + } + return MAL_SUCCESS; }