diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index 70ee8333c6..07da747c1e 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -133,15 +133,6 @@ namespace AudioCommon return backends; } - bool UseJIT() - { - if (!Movie::IsDSPHLE() && Movie::IsPlayingInput() && Movie::IsConfigSaved()) - { - return true; - } - return SConfig::GetInstance().m_DSPEnableJIT; - } - void PauseAndLock(bool doLock, bool unpauseOnUnlock) { if (soundStream) diff --git a/Source/Core/AudioCommon/AudioCommon.h b/Source/Core/AudioCommon/AudioCommon.h index 0a5eb9f5c6..3faf387bcc 100644 --- a/Source/Core/AudioCommon/AudioCommon.h +++ b/Source/Core/AudioCommon/AudioCommon.h @@ -17,7 +17,6 @@ namespace AudioCommon SoundStream *InitSoundStream(void *hWnd); void ShutdownSoundStream(); std::vector GetSoundBackends(); - bool UseJIT(); void PauseAndLock(bool doLock, bool unpauseOnUnlock=true); void UpdateSoundStream(); } diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp index 074f3773bf..bff5bb1d43 100644 --- a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp +++ b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp @@ -143,7 +143,9 @@ bool DSPLLE::Initialize(void *hWnd, bool bWii, bool bDSPThread) irom_file = File::GetSysDirectory() + GC_SYS_DIR DIR_SEP DSP_IROM; if (!File::Exists(coef_file)) coef_file = File::GetSysDirectory() + GC_SYS_DIR DIR_SEP DSP_COEF; - if (!DSPCore_Init(irom_file, coef_file, AudioCommon::UseJIT())) + + bool use_jit = SConfig::GetInstance().m_DSPEnableJIT; + if (!DSPCore_Init(irom_file, coef_file, use_jit)) return false; g_dsp.cpu_ram = Memory::GetPointer(0);