From 9c5605a59cf16aabd592a21cbee59c2bee227df4 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Mon, 15 Apr 2024 17:05:04 -0700 Subject: [PATCH] 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. --- Source/Core/AudioCommon/AudioCommon.cpp | 2 ++ 1 file changed, 2 insertions(+) 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