From 2ad6f67ba547ef66cf77f4b674fe8286edb4676e Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 29 Dec 2018 13:53:28 +1000 Subject: [PATCH] AAudio: Put the onStop callback in the right spot... --- mini_al.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mini_al.h b/mini_al.h index 284c33f0..ca8d0df4 100644 --- a/mini_al.h +++ b/mini_al.h @@ -18254,11 +18254,6 @@ mal_result mal_device__start_backend__aaudio(mal_device* pDevice) } } - mal_stop_proc onStop = pDevice->onStop; - if (onStop) { - onStop(pDevice); - } - return MAL_SUCCESS; } @@ -18288,6 +18283,11 @@ mal_result mal_device__stop_backend__aaudio(mal_device* pDevice) } } + mal_stop_proc onStop = pDevice->onStop; + if (onStop) { + onStop(pDevice); + } + return MAL_SUCCESS; }