From ff0c9334e6f8cfed46a163f1c0b750bab4c06c7e Mon Sep 17 00:00:00 2001 From: Ziemas Date: Sun, 24 Jan 2021 04:23:36 +0100 Subject: [PATCH] SPU2: Fix pitch modulation --- pcsx2/SPU2/Mixer.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pcsx2/SPU2/Mixer.cpp b/pcsx2/SPU2/Mixer.cpp index d916a80c02..1799f15157 100644 --- a/pcsx2/SPU2/Mixer.cpp +++ b/pcsx2/SPU2/Mixer.cpp @@ -581,18 +581,7 @@ static __forceinline StereoOut32 MixVoice(uint coreidx, uint voiceidx) CalculateADSR(thiscore, voiceidx); Value = MulShr32(Value, vc.ADSR.Value); - - // Store Value for eventual modulation later - // Pseudonym's Crest calculation idea. Actually calculates a crest, unlike the old code which was just peak. - if (vc.PV1 < vc.NextCrest) - { - vc.OutX = MulShr32(vc.NextCrest, vc.ADSR.Value); - vc.NextCrest = -0x8000; - } - if (vc.PV1 > vc.PV2) - { - vc.NextCrest = vc.PV1; - } + vc.OutX = Value; if (IsDevBuild) DebugCores[coreidx].Voices[voiceidx].displayPeak = std::max(DebugCores[coreidx].Voices[voiceidx].displayPeak, (s32)vc.OutX);