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:
parent
4d6b66163c
commit
81aa5af3b9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user