From 0d06590c238cddb84bf42f171fcb74930355c969 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 7 Jun 2025 05:40:18 -0700 Subject: [PATCH] Rubberband: Fix end of track reset for threading This end of track restart notification may come from a different thread than the processing thread. Wait on the thread to complete. Signed-off-by: Christopher Snowhill --- Audio/Chain/DSP/DSPRubberbandNode.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Audio/Chain/DSP/DSPRubberbandNode.m b/Audio/Chain/DSP/DSPRubberbandNode.m index 648dcf1de..fce091862 100644 --- a/Audio/Chain/DSP/DSPRubberbandNode.m +++ b/Audio/Chain/DSP/DSPRubberbandNode.m @@ -363,6 +363,7 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext; - (void)setEndOfStream:(BOOL)e { if(endOfStream && !e) { + while(processEntered); [self fullShutdown]; } [super setEndOfStream:e];