SPU: Start the sample pointer at -1

This makes videos in Stolen work again.
This commit is contained in:
Ziemas 2021-11-17 21:02:18 +01:00 committed by lightningterror
parent ed3237f808
commit 0dc3dcd9ed
1 changed files with 6 additions and 1 deletions

View File

@ -373,7 +373,12 @@ __forceinline bool StartQueuedVoice(uint coreidx, uint voiceidx)
vc.ADSR.Phase = 1;
vc.SCurrent = 28;
vc.LoopMode = 0;
vc.SP = 0;
// When SP >= 0 the next sample will be grabbed, we don't want this to happen
// instantly because in the case of pitch being 0 we want to delay getting
// the next block header.
vc.SP = -1;
vc.LoopFlags = 0;
vc.NextA = vc.StartA | 1;
vc.Prev1 = 0;