AudioCommon: When ALSA is absent on Linux, default to Cubeb backend

Default to Cubeb instead of the NULL backend on Linux when ALSA isn't
valid.
This commit is contained in:
Dentomologist 2024-04-15 17:05:04 -07:00
parent 83b5124d40
commit 9c5605a59c
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ std::string GetDefaultSoundBackend()
#elif defined __linux__
if (AlsaSound::IsValid())
backend = BACKEND_ALSA;
else
backend = BACKEND_CUBEB;
#elif defined(__APPLE__) || defined(_WIN32) || defined(__OpenBSD__)
backend = BACKEND_CUBEB;
#endif