Skip to content

Commit

Permalink
AudioCommon: Don't add Cubeb to backends vector if it isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
OatmealDome committed Jan 24, 2023
1 parent 65f88bb commit 8e09c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/AudioCommon/AudioCommon.cpp
Expand Up @@ -121,7 +121,8 @@ std::vector<std::string> GetSoundBackends()
std::vector<std::string> backends;

backends.emplace_back(BACKEND_NULLSOUND);
backends.emplace_back(BACKEND_CUBEB);
if (CubebStream::IsValid())
backends.emplace_back(BACKEND_CUBEB);
if (AlsaSound::IsValid())
backends.emplace_back(BACKEND_ALSA);
if (PulseAudio::IsValid())
Expand Down

0 comments on commit 8e09c3b

Please sign in to comment.