Commit e1bfeb21 authored by David Reid's avatar David Reid

AAudio: Reverse some incorrect logic when setting up streams.

parent db8e77ca
...@@ -37593,7 +37593,7 @@ static ma_result ma_create_and_configure_AAudioStreamBuilder__aaudio(ma_context* ...@@ -37593,7 +37593,7 @@ static ma_result ma_create_and_configure_AAudioStreamBuilder__aaudio(ma_context*
anything from Android 11 and earlier. Suggestions welcome on how we might be able to make anything from Android 11 and earlier. Suggestions welcome on how we might be able to make
this more targetted. this more targetted.
*/ */
if (pConfig->aaudio.enableCompatibilityWorkarounds && ma_android_sdk_version() > 30) { if (!pConfig->aaudio.enableCompatibilityWorkarounds || ma_android_sdk_version() > 30) {
/* /*
AAudio is annoying when it comes to it's buffer calculation stuff because it doesn't let you AAudio is annoying when it comes to it's buffer calculation stuff because it doesn't let you
retrieve the actual sample rate until after you've opened the stream. But you need to configure retrieve the actual sample rate until after you've opened the stream. But you need to configure
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