Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Made the timing consistent between DSP HLE and DSP LLE. Fixes Lost Ki…
…ngdoms II in DSP HLE mode.
  • Loading branch information
skidau committed Apr 6, 2013
1 parent 4d81e07 commit ecb4337
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Source/Core/Core/Src/HW/SystemTimers.cpp
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit ecb4337

Please sign in to comment.