mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
VST3: Avoid copy in channel mapper
This commit is contained in:
parent
0033e52179
commit
0889588ae4
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue