Browse Source

audio: Favor OpenSL ES over AAudio.

There are low-latency fixes in SDL3 that really need to be backported to SDL2
before AAudio will be nicer across a range of devices, so OpenSL ES is safer
in SDL2 at the moment. At least, we suspect as such.

Fixes #11457.

(cherry picked from commit 17b9ed7d82503bdd342e3d3973929e519b846804)
Ryan C. Gordon 9 months ago
parent
commit
96f4421e5f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/audio/SDL_audio.c

+ 3 - 3
src/audio/SDL_audio.c

@@ -93,12 +93,12 @@ static const AudioBootStrap *const bootstrap[] = {
 #ifdef SDL_AUDIO_DRIVER_FUSIONSOUND
 #ifdef SDL_AUDIO_DRIVER_FUSIONSOUND
     &FUSIONSOUND_bootstrap,
     &FUSIONSOUND_bootstrap,
 #endif
 #endif
-#ifdef SDL_AUDIO_DRIVER_AAUDIO
-    &aaudio_bootstrap,
-#endif
 #ifdef SDL_AUDIO_DRIVER_OPENSLES
 #ifdef SDL_AUDIO_DRIVER_OPENSLES
     &openslES_bootstrap,
     &openslES_bootstrap,
 #endif
 #endif
+#ifdef SDL_AUDIO_DRIVER_AAUDIO
+    &aaudio_bootstrap,
+#endif
 #ifdef SDL_AUDIO_DRIVER_ANDROID
 #ifdef SDL_AUDIO_DRIVER_ANDROID
     &ANDROIDAUDIO_bootstrap,
     &ANDROIDAUDIO_bootstrap,
 #endif
 #endif