1
0
Fork 0
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:
reuk 2023-02-05 19:29:36 +00:00
parent 0033e52179
commit 0889588ae4
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

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;