Skip to content

Commit

Permalink
fix: don't init jukebox if no audio output selected
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Jun 1, 2024
1 parent 18ee345 commit a9c5519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/Core/HW/EXI_DeviceSlippi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3362,13 +3362,13 @@ void CEXISlippi::ConfigureJukebox()
// Exclusive WASAPI and the Jukebox do not play nicely, so we just don't bother enabling
// the Jukebox in that scenario - why bother doing the processing work when it's not even
// possible to play it?
#ifdef _WIN32
// Jukebox will also respect no audio output
std::string backend = SConfig::GetInstance().sBackend;
if (backend.find(BACKEND_EXCLUSIVE_WASAPI) != std::string::npos)
if (backend.find(BACKEND_EXCLUSIVE_WASAPI) != std::string::npos ||
backend.find(BACKEND_NULLSOUND) != std::string::npos)
{
return;
}
#endif

bool jukeboxEnabled = SConfig::GetInstance().bSlippiJukeboxEnabled;
int systemVolume = SConfig::GetInstance().m_IsMuted ? 0 : SConfig::GetInstance().m_Volume;
Expand Down

0 comments on commit a9c5519

Please sign in to comment.