From 9a9c41f59e96a1aee3acb8d1cb5f54d3e0ed3b05 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Sun, 27 Jun 2010 14:39:28 +0000 Subject: [PATCH] SPU2-X: This should be more correct. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3327 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Mixer.cpp | 2 +- plugins/spu2-x/src/Reverb.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/spu2-x/src/Mixer.cpp b/plugins/spu2-x/src/Mixer.cpp index 2f1c7c8c18..ffcd27d652 100644 --- a/plugins/spu2-x/src/Mixer.cpp +++ b/plugins/spu2-x/src/Mixer.cpp @@ -689,7 +689,7 @@ StereoOut32 V_Core::Mix( const VoiceMixSet& inVoices, const StereoOut32& Input, // // On the other hand, updating the buffer is cheap and easy, so might as well. ;) - Reverb_AdvanceBuffer(); + Reverb_AdvanceBuffer(); // Updates the reverb work area as well, if needed. if (!FxEnable) return TD; StereoOut32 TW; diff --git a/plugins/spu2-x/src/Reverb.cpp b/plugins/spu2-x/src/Reverb.cpp index 8044ba7a0c..cbd838cb12 100644 --- a/plugins/spu2-x/src/Reverb.cpp +++ b/plugins/spu2-x/src/Reverb.cpp @@ -41,6 +41,9 @@ __forceinline s32 V_Core::RevbGetIndexer( s32 offset ) void V_Core::Reverb_AdvanceBuffer() { + if( RevBuffers.NeedsUpdated ) + UpdateEffectsBufferSize(); + if( (Cycles & 1) && (EffectsBufferSize > 0) ) { ReverbX += 1; @@ -73,9 +76,6 @@ StereoOut32 V_Core::DoReverb( const StereoOut32& Input ) } else { - if( RevBuffers.NeedsUpdated ) - UpdateEffectsBufferSize(); - if( EffectsBufferSize <= 0 ) { ubpos = (ubpos+1) & 7;