From 73738aa185bed67b395faa4978f13f1051ca8d8e Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 2 Oct 2023 19:14:36 -0700 Subject: [PATCH] Fix a missing do on a do-while block This should be looping on the condition, not sure how the compiler missed this one. 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 ba142838a..a4685330c 100644 --- a/Audio/Output/OutputCoreAudio.m +++ b/Audio/Output/OutputCoreAudio.m @@ -180,7 +180,7 @@ static OSStatus eqRenderCallback(void *inRefCon, AudioUnitRenderActionFlags *ioA size_t totalDone = 0; size_t inDone = 0; size_t visFrameCount = frameCount; - { + do { int visTodo = (int)MIN(visFrameCount, visResamplerRemain + visFrameCount - 8192); if(visTodo) { cblas_scopy(visTodo, &visAudio[0], 1, &visResamplerInput[visResamplerRemain], 1);