1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-10-18 09:40:42 +00:00
parent 7ceb5c5e8a
commit 656be34cff

View file

@ -600,7 +600,7 @@ public:
if (buf.mNumberChannels == 1)
{
if (numInChans < numOut)
if (numInChans < numOutChans)
memcpy (channels [numInChans], (const float*) buf.mData, sizeof (float) * numSamples);
else
channels [numInChans] = (float*) buf.mData;
@ -614,14 +614,14 @@ public:
{
float* dest;
if (numInChans >= numOut)
if (numInChans < numOutChans)
{
dest = bufferSpace.getSampleData (nextSpareBufferChan++);
channels [numInChans++] = dest;
dest = channels [numInChans++];
}
else
{
dest = channels [numInChans++];
dest = bufferSpace.getSampleData (nextSpareBufferChan++);
channels [numInChans++] = dest;
}
const float* src = ((const float*) buf.mData) + subChan;