SPU2: Disallow KeyOn within 2T of last KeyOn

Fixes Legend of Spyro New Beginning hang
This commit is contained in:
refractionpcsx2 2021-09-16 09:21:06 +01:00
parent f460cac3ba
commit d3f0718001
1 changed files with 6 additions and 0 deletions

View File

@ -1979,6 +1979,12 @@ void StartVoices(int core, u32 value)
if (!((value >> vc) & 1))
continue;
if ((Cycles - Cores[core].Voices[vc].PlayCycle) < 2)
{
ConLog("Attempt to start voice %d on core %d in less than 2T since last KeyOn\n", vc, core);
continue;
}
Cores[core].Voices[vc].Start();
if (IsDevBuild)