From f47870f2878deadef0a448ff0e8daef03bfc0ac6 Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Wed, 12 Nov 2025 18:43:11 +0200 Subject: [PATCH] Fix the bug by removing duplicate line --- lib_rend/lib_rend.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib_rend/lib_rend.c b/lib_rend/lib_rend.c index 22b9b0a5b..46f9734f1 100644 --- a/lib_rend/lib_rend.c +++ b/lib_rend/lib_rend.c @@ -446,13 +446,12 @@ static void accumulate2dArrayToBuffer( writePtr = buffer->data; for ( chnlIdx = 0; chnlIdx < buffer->config.numChannels; ++chnlIdx ) - for ( chnlIdx = 0; chnlIdx < buffer->config.numChannels; ++chnlIdx ) + { + for ( smplIdx = 0; smplIdx < buffer->config.numSamplesPerChannel; ++smplIdx ) { - for ( smplIdx = 0; smplIdx < buffer->config.numSamplesPerChannel; ++smplIdx ) - { - *writePtr++ += array[chnlIdx][smplIdx]; - } + *writePtr++ += array[chnlIdx][smplIdx]; } + } return; } -- GitLab