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

This commit is contained in:
David Reid
2018-12-29 13:53:28 +10:00
parent bfb1f07d72
commit 2ad6f67ba5
+5 -5
View File
@@ -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;
}