aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-02-25 01:08:11 -0800
committerChris Robinson <[email protected]>2019-02-25 01:08:11 -0800
commit81aa5af3b97e453b8793e9b02cb48a81f69a83ff (patch)
treeb2ad437ea44c33f53cc9010934d3e37f088a5ed6 /Alc/effects/reverb.cpp
parent4d6b66163c76ae36952748e8fbf9c68113a1ea60 (diff)
Make sure the reverb fading completes
The processing loop doesn't depend on being aligned anymore, so it won't get stuck when only less than 4 samples can be done in a non-final update.
Diffstat (limited to 'Alc/effects/reverb.cpp')
-rw-r--r--Alc/effects/reverb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp
index 0996a37b..eab321e9 100644
--- a/Alc/effects/reverb.cpp
+++ b/Alc/effects/reverb.cpp
@@ -1417,7 +1417,7 @@ void ReverbState::process(ALsizei samplesToDo, const ALfloat (*RESTRICT samplesI
/* Step fading forward. */
fadeCount += todo;
- if(fadeCount >= FADE_SAMPLES-3)
+ if(fadeCount >= FADE_SAMPLES)
{
/* Update the cross-fading delay line taps. */
fadeCount = FADE_SAMPLES;