mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
7ceb5c5e8a
commit
656be34cff
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue