SPU: Start the sample pointer at -1

This makes videos in Stolen work again.
This commit is contained in:
Ziemas authored and lightningterror committed 2021-12-03 19:37:19 +01:00
1 parent ed3237f808
commit 0dc3dcd9ed
1 file changed
+6 -1
+6 -1
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;