Use the OpenSL ES audio driver by default on Android, as it has the lowest latency.
authorSam Lantinga
Thu, 23 May 2019 13:47:30 -0700
changeset 127558385c930c2d0
parent 12754 aec84759c57e
child 12756 4116bf232fe7
Use the OpenSL ES audio driver by default on Android, as it has the lowest latency.
src/audio/SDL_audio.c
src/audio/SDL_sysaudio.h
     1.1 --- a/src/audio/SDL_audio.c	Thu May 23 13:47:27 2019 -0700
     1.2 +++ b/src/audio/SDL_audio.c	Thu May 23 13:47:30 2019 -0700
     1.3 @@ -89,12 +89,12 @@
     1.4  #if SDL_AUDIO_DRIVER_FUSIONSOUND
     1.5      &FUSIONSOUND_bootstrap,
     1.6  #endif
     1.7 +#if SDL_AUDIO_DRIVER_OPENSLES
     1.8 +    &openslES_bootstrap,
     1.9 +#endif
    1.10  #if SDL_AUDIO_DRIVER_ANDROID
    1.11      &ANDROIDAUDIO_bootstrap,
    1.12  #endif
    1.13 -#if SDL_AUDIO_DRIVER_OPENSLES
    1.14 -    &openslES_bootstrap,
    1.15 -#endif
    1.16  #if SDL_AUDIO_DRIVER_PSP
    1.17      &PSPAUDIO_bootstrap,
    1.18  #endif
     2.1 --- a/src/audio/SDL_sysaudio.h	Thu May 23 13:47:27 2019 -0700
     2.2 +++ b/src/audio/SDL_sysaudio.h	Thu May 23 13:47:30 2019 -0700
     2.3 @@ -204,8 +204,8 @@
     2.4  extern AudioBootStrap DISKAUDIO_bootstrap;
     2.5  extern AudioBootStrap DUMMYAUDIO_bootstrap;
     2.6  extern AudioBootStrap FUSIONSOUND_bootstrap;
     2.7 +extern AudioBootStrap openslES_bootstrap;
     2.8  extern AudioBootStrap ANDROIDAUDIO_bootstrap;
     2.9 -extern AudioBootStrap openslES_bootstrap;
    2.10  extern AudioBootStrap PSPAUDIO_bootstrap;
    2.11  extern AudioBootStrap EMSCRIPTENAUDIO_bootstrap;
    2.12