From 922ab848caf3887655867b3824f0610cf1285979 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Sun, 20 Feb 2011 01:54:23 +0000 Subject: [PATCH] SPU2-X: Fixed an ENDX register bug and switched the dealias filter with the frequency response filter. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4322 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Mixer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/spu2-x/src/Mixer.cpp b/plugins/spu2-x/src/Mixer.cpp index 2a4a16c79d..6a990fc74d 100644 --- a/plugins/spu2-x/src/Mixer.cpp +++ b/plugins/spu2-x/src/Mixer.cpp @@ -113,7 +113,7 @@ static void __forceinline IncrementNextA(V_Core& thiscore, uint voiceidx) if( Cores[i].IRQEnable && (vc.NextA==Cores[i].IRQA ) ) { //if( IsDevBuild ) - // ConLog(" * SPU2 Core %d: IRQ Called (IRQA (%05X) passed; voice %d).\n", i, Cores[i].IRQA, thiscore.Index * 24 + voiceidx); + // ConLog(" * SPU2 Core %d: IRQ Requested (IRQA (%05X) passed; voice %d).\n", i, Cores[i].IRQA, thiscore.Index * 24 + voiceidx); SetIrqCall(i); } @@ -353,7 +353,6 @@ static __forceinline void CalculateADSR( V_Core& thiscore, uint voiceidx ) if(MsgVoiceOff()) ConLog("* SPU2-X: Voice Off by ADSR: %d \n", voiceidx); } vc.Stop(); - thiscore.Regs.ENDX |= (1 << voiceidx); } jASSUME( vc.ADSR.Value >= 0 ); // ADSR should never be negative... @@ -858,9 +857,9 @@ __forceinline void Mix() if(postprocess_filter_enabled) #endif { - Out = Apply_Dealias_Filter ( Out ); - // Frequency response filter needs to be tuned. Currently emphasizes the highs too much. - //Out = Apply_Frequency_Response_Filter ( Out ); + // Dealias filter emphasizes the highs too much. + //Out = Apply_Dealias_Filter ( Out ); + Out = Apply_Frequency_Response_Filter ( Out ); } // Final Clamp!