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
This commit is contained in:
gigaherz 2010-06-18 17:47:50 +00:00
parent 914474ebc9
commit 6857acbadf
1 changed files with 3 additions and 0 deletions

View File

@ -575,6 +575,9 @@ static __forceinline StereoOut32 MixVoice( uint coreidx, uint voiceidx )
Value = MulShr32( Value, vc.ADSR.Value ); Value = MulShr32( Value, vc.ADSR.Value );
vc.OutX = Value; // Note: All values recorded into OutX (may be used for modulation later) 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 ) if( IsDevBuild )
DebugCores[coreidx].Voices[voiceidx].displayPeak = std::max(DebugCores[coreidx].Voices[voiceidx].displayPeak,abs(vc.OutX)); DebugCores[coreidx].Voices[voiceidx].displayPeak = std::max(DebugCores[coreidx].Voices[voiceidx].displayPeak,abs(vc.OutX));