From 96f4421e5fede39c5077023e996def61769e1287 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 13 Nov 2024 18:22:59 -0500 Subject: [PATCH] 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) --- src/audio/SDL_audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 96586fe77318e..6733b38a6f4b6 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -93,12 +93,12 @@ static const AudioBootStrap *const bootstrap[] = { #ifdef SDL_AUDIO_DRIVER_FUSIONSOUND &FUSIONSOUND_bootstrap, #endif -#ifdef SDL_AUDIO_DRIVER_AAUDIO - &aaudio_bootstrap, -#endif #ifdef SDL_AUDIO_DRIVER_OPENSLES &openslES_bootstrap, #endif +#ifdef SDL_AUDIO_DRIVER_AAUDIO + &aaudio_bootstrap, +#endif #ifdef SDL_AUDIO_DRIVER_ANDROID &ANDROIDAUDIO_bootstrap, #endif