From e9e4fd3aa4ce610e72e0baf4555e473f4869e80e Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 2 Oct 2023 19:13:27 -0700 Subject: [PATCH] Hopefully fix format change on end of track This should keep the audio pipeline flowing either way. Signed-off-by: Christopher Snowhill --- Audio/Output/OutputCoreAudio.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Audio/Output/OutputCoreAudio.m b/Audio/Output/OutputCoreAudio.m index b9790a91f..ba142838a 100644 --- a/Audio/Output/OutputCoreAudio.m +++ b/Audio/Output/OutputCoreAudio.m @@ -835,6 +835,8 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons streamFormatChanged = NO; if(inputRendered) { resetStreamFormat = YES; + // This may not get called otherwise + [self processEndOfStream]; break; } else { [self updateStreamFormat];