diff options
author | Chris Robinson <[email protected]> | 2019-02-22 02:15:22 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-22 02:15:22 -0800 |
commit | 6a3c10d850338af8d12b88dbe3d5bedf997d3c95 (patch) | |
tree | 3179444c6acb0c5aa76f9002b9fb64861ca95250 /Alc | |
parent | 6a2cf964488e8d42b33b2a87bae9cd7f4b4c7b9b (diff) |
Ensure reverb fading doesn't end with less than 4 samples
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/effects/reverb.cpp | 2 |
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; |