diff --git a/lib_rend/lib_rend.c b/lib_rend/lib_rend.c index 22b9b0a5b9694fa0f14fd9041db81365ef771681..46f9734f1a2265c003f25bb33c086aecbb0f3e0b 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; }