summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-04-17 05:14:48 +0200
committerGitHub <noreply@github.com>2024-04-17 05:14:48 +0200
commit3527d97aace32219608319b18810251ec7ef6ef9 (patch)
tree17d57448c057452ebe7308a47f64b2f2286f7639 /Source/Core/AudioCommon/AudioCommon.cpp
parent83b5124d40b9ac20c17bec2b862f8e8b01bebc91 (diff)
parent9c5605a59cf16aabd592a21cbee59c2bee227df4 (diff)
Merge pull request #12713 from Dentomologist/linux_default_to_cubeb_when_alsa_is_absent
AudioCommon: When ALSA is absent on Linux, default to Cubeb backend
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
-rw-r--r--Source/Core/AudioCommon/AudioCommon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp
index b212859e29..d9fee4ef72 100644
--- a/Source/Core/AudioCommon/AudioCommon.cpp
+++ b/Source/Core/AudioCommon/AudioCommon.cpp
@@ -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