Commit 2ad6f67b authored by David Reid's avatar David Reid

AAudio: Put the onStop callback in the right spot...

parent bfb1f07d
...@@ -18254,11 +18254,6 @@ mal_result mal_device__start_backend__aaudio(mal_device* pDevice) ...@@ -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; return MAL_SUCCESS;
} }
...@@ -18288,6 +18283,11 @@ mal_result mal_device__stop_backend__aaudio(mal_device* pDevice) ...@@ -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; 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