From 656be34cff3709b14f5b4359786a54c8fcddbc22 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 18 Oct 2007 09:40:42 +0000 Subject: [PATCH] --- .../formats/AudioUnit/juce_AudioUnitWrapper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extras/audio plugins/wrapper/formats/AudioUnit/juce_AudioUnitWrapper.cpp b/extras/audio plugins/wrapper/formats/AudioUnit/juce_AudioUnitWrapper.cpp index 5c61ffa900..77ffb11c60 100644 --- a/extras/audio plugins/wrapper/formats/AudioUnit/juce_AudioUnitWrapper.cpp +++ b/extras/audio plugins/wrapper/formats/AudioUnit/juce_AudioUnitWrapper.cpp @@ -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;