audio: Favor OpenSL ES over AAudio.
Some checks are pending
Build (Android) / CMake (push) Waiting to run
Build (Android) / Android.mk (push) Waiting to run
Build (C/P Actions) / FreeBSD (push) Waiting to run
Build (Emscripten) / emscripten (push) Waiting to run
Build (iOS/tvOS) / iOS (push) Waiting to run
Build (iOS/tvOS) / tvOS (push) Waiting to run
Build / Intel Compiler (Ubuntu 20.04) (push) Waiting to run
Build / Intel oneAPI (Ubuntu 20.04) (push) Waiting to run
Build / MacOS (autotools) (push) Waiting to run
Build / Ubuntu 20.04 (autotools) (push) Waiting to run
Build / Ubuntu 22.04 (autotools) (push) Waiting to run
Build / MacOS (CMake) (push) Waiting to run
Build / iOS (CMake) (push) Waiting to run
Build / tvOS (CMake) (push) Waiting to run
Build / Windows (clang32) (push) Waiting to run
Build / Windows (clang64) (push) Waiting to run
Build / Windows (mingw32) (push) Waiting to run
Build / Windows (ucrt64) (push) Waiting to run
Build / Windows (mingw64) (push) Waiting to run
Build / Ubuntu 20.04 (CMake) (push) Waiting to run
Build / Ubuntu 22.04 (CMake) (push) Waiting to run
Build (MSVC) / GDK (x64) (push) Waiting to run
Build (MSVC) / UWP (x64) (push) Waiting to run
Build (MSVC) / Windows (ARM) (push) Waiting to run
Build (MSVC) / Windows (ARM64) (push) Waiting to run
Build (MSVC) / Windows (x64) (push) Waiting to run
Build (MSVC) / Windows (x86) (push) Waiting to run
Build (MSVC) / Windows (clang-cl x64) (push) Waiting to run
Build (MSVC) / Windows (clang-cl x86) (push) Waiting to run
Build (MSVC) / Windows static VCRT (x64) (push) Waiting to run
Build (MSVC) / Windows static VCRT (x86) (push) Waiting to run
Build (Nintendo 3DS) / n3ds (push) Waiting to run
Build (Sony Playstation 2) / ps2 (push) Waiting to run
Build (Sony Playstation Portable) / psp (push) Waiting to run
Build (RISC OS) / CMake (push) Waiting to run
Build (RISC OS) / autotools (push) Waiting to run
Build (Sony Playstation Vita) / GLES (PVR_PSP2 + gl4es4vita) (push) Waiting to run
Build (Sony Playstation Vita) / GLES (pib) (push) Waiting to run
Build (OpenWatcom) / OS/2 (push) Waiting to run
Build (OpenWatcom) / Windows (push) Waiting to run

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.
This commit is contained in:
Ryan C. Gordon 2024-11-13 18:22:59 -05:00
parent f1a3a18c1e
commit 17b9ed7d82
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -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