aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-02-22 02:15:22 -0800
committerChris Robinson <[email protected]>2019-02-22 02:15:22 -0800
commit6a3c10d850338af8d12b88dbe3d5bedf997d3c95 (patch)
tree3179444c6acb0c5aa76f9002b9fb64861ca95250 /Alc/effects/reverb.cpp
parent6a2cf964488e8d42b33b2a87bae9cd7f4b4c7b9b (diff)
Ensure reverb fading doesn't end with less than 4 samples
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 2c4d6238..5b0fd080 100644
--- a/Alc/effects/reverb.cpp
+++ b/Alc/effects/reverb.cpp
@@ -1360,7 +1360,7 @@ void ReverbState::process(ALsizei samplesToDo, const ALfloat (*RESTRICT samplesI
/* Step fading forward. */
fadeCount += todo;
- if(LIKELY(fadeCount >= FADE_SAMPLES))
+ if(fadeCount >= FADE_SAMPLES-3)
{
/* Update the cross-fading delay line taps. */
fadeCount = FADE_SAMPLES;