From 8c4535c6c5ac3526a532cb35138921f1ffd52de5 Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 7 Jan 2026 10:33:13 +1000 Subject: [PATCH] Fix a bug with sound node processing. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 75546ed2..858f55ab 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -76953,7 +76953,7 @@ static void ma_engine_node_process_pcm_frames__sound(ma_node* pNode, const float while (totalFramesConverted < pSound->processingCacheCap) { ma_uint64 framesConverted; - ma_uint32 framesToConvertThisIteration = pSound->processingCacheCap - framesConverted; + ma_uint32 framesToConvertThisIteration = pSound->processingCacheCap - totalFramesConverted; if (framesToConvertThisIteration > tempCapInFrames) { framesToConvertThisIteration = tempCapInFrames; }