From f3e76ea1d050d20967a3b4410ece33d43ca4de14 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 23 May 2019 13:47:30 -0700 Subject: [PATCH] Use the OpenSL ES audio driver by default on Android, as it has the lowest latency. --- src/audio/SDL_audio.c | 6 +++--- src/audio/SDL_sysaudio.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 836b7b646..ad010e44d 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -89,12 +89,12 @@ static const AudioBootStrap *const bootstrap[] = { #if SDL_AUDIO_DRIVER_FUSIONSOUND &FUSIONSOUND_bootstrap, #endif -#if SDL_AUDIO_DRIVER_ANDROID - &ANDROIDAUDIO_bootstrap, -#endif #if SDL_AUDIO_DRIVER_OPENSLES &openslES_bootstrap, #endif +#if SDL_AUDIO_DRIVER_ANDROID + &ANDROIDAUDIO_bootstrap, +#endif #if SDL_AUDIO_DRIVER_PSP &PSPAUDIO_bootstrap, #endif diff --git a/src/audio/SDL_sysaudio.h b/src/audio/SDL_sysaudio.h index 09a77c967..284b626c7 100644 --- a/src/audio/SDL_sysaudio.h +++ b/src/audio/SDL_sysaudio.h @@ -204,8 +204,8 @@ extern AudioBootStrap COREAUDIO_bootstrap; extern AudioBootStrap DISKAUDIO_bootstrap; extern AudioBootStrap DUMMYAUDIO_bootstrap; extern AudioBootStrap FUSIONSOUND_bootstrap; -extern AudioBootStrap ANDROIDAUDIO_bootstrap; extern AudioBootStrap openslES_bootstrap; +extern AudioBootStrap ANDROIDAUDIO_bootstrap; extern AudioBootStrap PSPAUDIO_bootstrap; extern AudioBootStrap EMSCRIPTENAUDIO_bootstrap;