Browse Source

Fixed another typo and removed unecessary for loop

tags/2021-05-28
hogliux 9 years ago
parent
commit
8835a24417
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      modules/juce_audio_processors/processors/juce_AudioProcessor.cpp

+ 4
- 7
modules/juce_audio_processors/processors/juce_AudioProcessor.cpp View File

@@ -745,14 +745,11 @@ AudioProcessor::BusesProperties AudioProcessor::busesPropertiesFromLayoutArray (
{ {
BusesProperties ioProps; BusesProperties ioProps;
for (int i = 0; i < config.size(); ++i)
{
if (config[i].inChannels > 0)
ioProps.addBus (true, String ("Input #") + String (i + 1), AudioChannelSet::canonicalChannelSet (config[i].inChannels));
if (config[0].inChannels > 0)
ioProps.addBus (true, String ("Input"), AudioChannelSet::canonicalChannelSet (config[0].inChannels));
if (config[i].outChannels > 0)
ioProps.addBus (false, String ("Output #") + String (i + 1), AudioChannelSet::canonicalChannelSet (config[i].inChannels));
}
if (config[0].outChannels > 0)
ioProps.addBus (false, String ("Output"), AudioChannelSet::canonicalChannelSet (config[0].outChannels));
return ioProps; return ioProps;
} }


Loading…
Cancel
Save