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.
This commit is contained in:
Chris Robinson 2019-02-25 01:08:11 -08:00
parent 4d6b66163c
commit 81aa5af3b9

View File

@ -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;