Skip to content

Commit 6cb22d6

Browse files
committed
Reduce redundant calls in juce library
1 parent 12e31ce commit 6cb22d6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,9 @@ struct RenderingOpSequenceCalculator
767767
}
768768
else
769769
{
770-
for (int i = 0; i < node->getProcessor()->getTotalNumInputChannels(); ++i)
770+
//Open ephys modification
771+
unsigned int numInputChannels = node->getProcessor()->getTotalNumInputChannels();
772+
for (int i = 0; i < numInputChannels; ++i)
771773
if (i != inputChannelOfIndexToIgnore
772774
&& graph.getConnectionBetween (nodeId, outputChanIndex,
773775
node->nodeId, i) != nullptr)

0 commit comments

Comments
 (0)