From 90f00d35d56f11ccdb9aa1dcb38993923ec43716 Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Sat, 1 Jun 2024 14:23:09 -0700 Subject: [PATCH] refactor: skip jukebox init if null audio backend --- Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp b/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp index 7644abf8a70c..8b547e0322b7 100644 --- a/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp +++ b/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp @@ -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);