mirror of https://github.com/PCSX2/pcsx2.git
SPU2: Disallow KeyOn within 2T of last KeyOn
Fixes Legend of Spyro New Beginning hang
This commit is contained in:
parent
f460cac3ba
commit
d3f0718001
|
@ -1979,6 +1979,12 @@ void StartVoices(int core, u32 value)
|
||||||
if (!((value >> vc) & 1))
|
if (!((value >> vc) & 1))
|
||||||
continue;
|
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();
|
Cores[core].Voices[vc].Start();
|
||||||
|
|
||||||
if (IsDevBuild)
|
if (IsDevBuild)
|
||||||
|
|
Loading…
Reference in New Issue