From ecb4337209486c733ef20a132334df8485c64f01 Mon Sep 17 00:00:00 2001 From: skidau Date: Sat, 6 Apr 2013 20:26:43 +1100 Subject: [PATCH] Made the timing consistent between DSP HLE and DSP LLE. Fixes Lost Kingdoms II in DSP HLE mode. --- Source/Core/Core/Src/HW/SystemTimers.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Source/Core/Core/Src/HW/SystemTimers.cpp b/Source/Core/Core/Src/HW/SystemTimers.cpp index 27ba4a62f9..5854f728cb 100644 --- a/Source/Core/Core/Src/HW/SystemTimers.cpp +++ b/Source/Core/Core/Src/HW/SystemTimers.cpp @@ -245,9 +245,6 @@ void Init() { if (SConfig::GetInstance().m_LocalCoreStartupParameter.bWii) { - if (!DSP::GetDSPEmulator()->IsLLE()) - DSP_PERIOD = (int)(GetTicksPerSecond() * 0.003f); - // AyuanX: TO BE TWEAKED // Now the 1500 is a pure assumption // We need to figure out the real frequency though @@ -258,14 +255,8 @@ void Init() bVBeam ? 2 : 1; IPC_HLE_PERIOD = GetTicksPerSecond() / (freq * fields); } - else - { - if (!DSP::GetDSPEmulator()->IsLLE()) - DSP_PERIOD = (int)(GetTicksPerSecond() * 0.005f); - } - if (DSP::GetDSPEmulator()->IsLLE()) - DSP_PERIOD = 12000; // TO BE TWEAKED + DSP_PERIOD = 12500; // TO BE TWEAKED (> 15000 breaks Lost Kingdom II) // System internal sample rate is fixed at 32KHz * 4 (16bit Stereo) / 32 bytes DMA AUDIO_DMA_PERIOD = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32);