diff options
| author | Dentomologist <dentomologist@gmail.com> | 2024-04-15 17:05:04 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2024-04-16 14:06:28 -0700 |
| commit | 9c5605a59cf16aabd592a21cbee59c2bee227df4 (patch) | |
| tree | 17d57448c057452ebe7308a47f64b2f2286f7639 /Source/Core/AudioCommon/AudioCommon.cpp | |
| parent | 83b5124d40b9ac20c17bec2b862f8e8b01bebc91 (diff) | |
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.
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/AudioCommon.cpp | 2 |
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 |
