Skip to content

Commit

Permalink
refactor: skip jukebox init if null audio backend
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Jun 1, 2024
1 parent 092cae6 commit 90f00d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3323,8 +3323,11 @@ void CEXISlippi::ConfigureJukebox()
}
#endif

bool no_audio_output = backend.find(BACKEND_NULLSOUND) != std::string::npos;
int dolphin_system_volume = Config::Get(Config::MAIN_AUDIO_MUTED) || no_audio_output ?
if (backend.find(BACKEND_NULLSOUND) != std::string::npos) {
return;
}

int dolphin_system_volume = Config::Get(Config::MAIN_AUDIO_MUTED) ?
0 :
Config::Get(Config::MAIN_AUDIO_VOLUME);

Expand Down

0 comments on commit 90f00d3

Please sign in to comment.