Bug Fix: Actually perform a fade in

It doesn't fade if we don't advance the sample pointer. Ugh.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-08 00:38:38 -08:00
parent 3dbde22f61
commit 3f4e35ed17

View file

@ -549,6 +549,7 @@ static BOOL fadeAudio(float * samples, size_t channels, size_t count, float * fa
for(size_t j = 0; j < channels; ++j) {
samples[j] *= _fadeLevel;
}
samples += channels;
_fadeLevel += fadeStep;
if(towardZero && _fadeLevel <= fadeTarget) {
_fadeLevel = fadeTarget;