Browse Source

Fix a build warning

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 5 years ago
parent
commit
6444958a72
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/modules/water/processors/AudioProcessorGraph.cpp

+ 2
- 2
source/modules/water/processors/AudioProcessorGraph.cpp View File

@@ -1423,9 +1423,9 @@ bool AudioProcessorGraph::isConnectionLegal (const Connection* const c) const
return source != nullptr return source != nullptr
&& dest != nullptr && dest != nullptr
&& (c->sourceChannelIndex != midiChannelIndex ? isPositiveAndBelow (c->sourceChannelIndex, source->processor->getTotalNumOutputChannels(c->channelType))
&& (c->sourceChannelIndex != midiChannelIndex ? (c->sourceChannelIndex < source->processor->getTotalNumOutputChannels(c->channelType))
: source->processor->producesMidi()) : source->processor->producesMidi())
&& (c->destChannelIndex != midiChannelIndex ? isPositiveAndBelow (c->destChannelIndex, dest->processor->getTotalNumInputChannels(c->channelType))
&& (c->destChannelIndex != midiChannelIndex ? (c->destChannelIndex < dest->processor->getTotalNumInputChannels(c->channelType))
: dest->processor->acceptsMidi()); : dest->processor->acceptsMidi());
} }


Loading…
Cancel
Save