From afeb614481e9bfe3fd5cb187b59600943d8cf6a0 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 8 Mar 2025 00:38:38 -0800 Subject: [PATCH] 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 --- Audio/Output/OutputCoreAudio.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Audio/Output/OutputCoreAudio.m b/Audio/Output/OutputCoreAudio.m index d178dbf32..729cbfdb6 100644 --- a/Audio/Output/OutputCoreAudio.m +++ b/Audio/Output/OutputCoreAudio.m @@ -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;