Skip to content

Commit 17b9ed7

Browse files
committed
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.
1 parent f1a3a18 commit 17b9ed7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/audio/SDL_audio.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ static const AudioBootStrap *const bootstrap[] = {
9393
#ifdef SDL_AUDIO_DRIVER_FUSIONSOUND
9494
&FUSIONSOUND_bootstrap,
9595
#endif
96-
#ifdef SDL_AUDIO_DRIVER_AAUDIO
97-
&aaudio_bootstrap,
98-
#endif
9996
#ifdef SDL_AUDIO_DRIVER_OPENSLES
10097
&openslES_bootstrap,
10198
#endif
99+
#ifdef SDL_AUDIO_DRIVER_AAUDIO
100+
&aaudio_bootstrap,
101+
#endif
102102
#ifdef SDL_AUDIO_DRIVER_ANDROID
103103
&ANDROIDAUDIO_bootstrap,
104104
#endif

0 commit comments

Comments
 (0)