Browse Source

VST3: Avoid copy in channel mapper

v7.0.9
reuk 3 years ago
parent
commit
0889588ae4
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_audio_processors/format_types/juce_VST3Common.h

+ 2
- 2
modules/juce_audio_processors/format_types/juce_VST3Common.h View File

@@ -701,7 +701,7 @@ public:
if (! validateLayouts<Direction::input, FloatType> (data.inputs, data.inputs + vstInputs, inputMap))
return getBlankBuffer (usedChannels, (int) data.numSamples);
setUpInputChannels (data, (size_t) vstInputs, scratchBuffer, inputMap, channels);
setUpInputChannels (data, (size_t) vstInputs, scratchBuffer, inputMap, channels);
setUpOutputChannels (scratchBuffer, outputMap, channels);
const auto channelPtr = channels.empty() ? scratchBuffer.getArrayOfWritePointers()
@@ -719,7 +719,7 @@ private:
{
for (size_t busIndex = 0; busIndex < map.size(); ++busIndex)
{
const auto mapping = map[busIndex];
const auto& mapping = map[busIndex];
if (! mapping.isClientActive())
continue;


Loading…
Cancel
Save