From d7dd7754470453a324e499499d1814baa9a944df Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 11 Jun 2025 19:00:45 -0700 Subject: [PATCH] Bug Fix: Stop track fades from hanging on occasion Track fades could hang if fired in rapid succession. Now each fade will be guaranteed to resume input feeding upon removing the current input to the background fade-out queue. Signed-off-by: Christopher Snowhill --- Audio/Output/OutputCoreAudio.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/Output/OutputCoreAudio.m b/Audio/Output/OutputCoreAudio.m index dbe696cdf..c26d4b39b 100644 --- a/Audio/Output/OutputCoreAudio.m +++ b/Audio/Output/OutputCoreAudio.m @@ -982,6 +982,7 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons [fadedBuffers addObject:buffer]; [fadedBuffersLock unlock]; [outputLock unlock]; + cutOffInput = NO; } - (void)fadeIn { @@ -990,7 +991,6 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons fadeStep = ((fadeTarget - fadeLevel) / deviceFormat.mSampleRate) * (1000.0f / 125.0f); fading = YES; faded = NO; - cutOffInput = NO; } @end