Skip to content

Commit 8406ede

Browse files
committed
Fix destination channel of copying to temp buffer
1 parent addd10b commit 8406ede

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/Processors/AudioNode/AudioNode.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ void AudioNode::recreateBuffers()
197197

198198
}
199199

200-
tempBuffer->setSize(getNumInputs(), 4096);
201-
// tempBuffer->setSize(1, 4096);
200+
// tempBuffer->setSize(getNumInputs(), 4096);
201+
tempBuffer->setSize(1, 4096);
202202
}
203203

204204
bool AudioNode::enable()
@@ -289,7 +289,7 @@ void AudioNode::process(AudioSampleBuffer& buffer)
289289
if (samplesToCopyFromOverflowBuffer > 0) // need to re-add samples from backup buffer
290290
{
291291

292-
tempBuffer->addFrom(i, // destination channel
292+
tempBuffer->addFrom(0, // destination channel
293293
0, // destination start sample
294294
*overflowBuffer, // source
295295
0, // source channel

0 commit comments

Comments
 (0)