Fix default audio backend on Android being "No audio output"

People who already have encountered the problem will need to
manually change the audio backend (or delete the config INI).
This commit is contained in:
JosJuice 2017-02-08 21:29:27 +01:00
parent 0d319298ba
commit 01073946b4
1 changed files with 3 additions and 3 deletions

View File

@ -95,15 +95,15 @@ void ShutdownSoundStream()
std::string GetDefaultSoundBackend() std::string GetDefaultSoundBackend()
{ {
std::string backend = BACKEND_NULLSOUND; std::string backend = BACKEND_NULLSOUND;
#if defined __linux__ #if defined ANDROID
backend = BACKEND_OPENSLES;
#elif defined __linux__
if (AlsaSound::isValid()) if (AlsaSound::isValid())
backend = BACKEND_ALSA; backend = BACKEND_ALSA;
#elif defined __APPLE__ #elif defined __APPLE__
backend = BACKEND_COREAUDIO; backend = BACKEND_COREAUDIO;
#elif defined _WIN32 #elif defined _WIN32
backend = BACKEND_XAUDIO2; backend = BACKEND_XAUDIO2;
#elif defined ANDROID
backend = BACKEND_OPENSLES;
#endif #endif
return backend; return backend;
} }