From b0f5a37e85bedc45fb48fff4d88cedf634ad7524 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 12 Jan 2022 21:53:58 -0800 Subject: [PATCH] Cog Audio: Only proceed to the next track when the current track has actually finished --- Audio/Chain/OutputNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/Chain/OutputNode.m b/Audio/Chain/OutputNode.m index 05c9bfcb8..9bda72740 100644 --- a/Audio/Chain/OutputNode.m +++ b/Audio/Chain/OutputNode.m @@ -60,7 +60,7 @@ n = [super readData:ptr amount:amount]; amountPlayed += n; - if (endOfStream == YES) + if (endOfStream == YES && !n) { amountPlayed = 0; [controller endOfInputPlayed]; //Updates shouldContinue appropriately?