From baaccfd2f07dba0584b9391ce4ad5015e95d0081 Mon Sep 17 00:00:00 2001 From: skidau Date: Sat, 1 Nov 2014 13:57:24 +1100 Subject: [PATCH] Take into account the want_determinism option and do not create a DSP thread if determinism is needed. --- Source/Core/Core/HW/DSPLLE/DSPLLE.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp index 2d245348a9..ee3e2bcb9b 100644 --- a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp +++ b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp @@ -162,7 +162,9 @@ static bool FillDSPInitOptions(DSPInitOptions* opts) bool DSPLLE::Initialize(bool bWii, bool bDSPThread) { m_bWii = bWii; - m_bDSPThread = bDSPThread; + m_bDSPThread = true; + if (NetPlay::IsNetPlayRunning() || Movie::IsMovieActive() || Core::g_want_determinism || !bDSPThread) + m_bDSPThread = false; requestDisableThread = false; DSPInitOptions opts; @@ -317,7 +319,7 @@ void DSPLLE::DSP_Update(int cycles) */ if (m_bDSPThread) { - if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive()) + if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive() || Core::g_want_determinism) { DSP_StopSoundStream(); m_bDSPThread = false;