From 6857acbadf8c81c3572ca04f769cd45f9cfd0252 Mon Sep 17 00:00:00 2001 From: gigaherz Date: Fri, 18 Jun 2010 17:47:50 +0000 Subject: [PATCH] SPU2-X: Voices used for modulation are not supposed to be played out loud. The actual modulation could still be wrong, but at least it will avoid annoying sounds to be played (e.g. Romancing SaGa main menu). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3224 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Mixer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/spu2-x/src/Mixer.cpp b/plugins/spu2-x/src/Mixer.cpp index 7c50f07ceb..f826027609 100644 --- a/plugins/spu2-x/src/Mixer.cpp +++ b/plugins/spu2-x/src/Mixer.cpp @@ -575,6 +575,9 @@ static __forceinline StereoOut32 MixVoice( uint coreidx, uint voiceidx ) Value = MulShr32( Value, vc.ADSR.Value ); vc.OutX = Value; // Note: All values recorded into OutX (may be used for modulation later) + if(voiceidx<23 && Cores[coreidx].Voices[voiceidx+1].Modulated) + Value=0; + if( IsDevBuild ) DebugCores[coreidx].Voices[voiceidx].displayPeak = std::max(DebugCores[coreidx].Voices[voiceidx].displayPeak,abs(vc.OutX));