From f4f46942ec58642233c4e0391f59adef5de92c29 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 2 Oct 2023 10:14:20 -0700 Subject: [PATCH] Fix converter after output switchover This was missing, too. Signed-off-by: Christopher Snowhill --- Audio/Chain/ConverterNode.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Audio/Chain/ConverterNode.m b/Audio/Chain/ConverterNode.m index 5ae201bd4..7ae011918 100644 --- a/Audio/Chain/ConverterNode.m +++ b/Audio/Chain/ConverterNode.m @@ -101,11 +101,12 @@ void scale_by_volume(float *buffer, size_t count, float volume) { chunk = [self convert]; } if(!chunk) { - if(paused) { - continue; - } else if(!streamFormatChanged) { + if([self endOfStream] == YES) { break; } + if(paused || !streamFormatChanged) { + continue; + } } else { @autoreleasepool { [self writeChunk:chunk];