From 8835a244174cc99b2ebaf2cb73279c83a70f7ffc Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 20 Sep 2016 12:33:38 +0100 Subject: [PATCH] Fixed another typo and removed unecessary for loop --- .../processors/juce_AudioProcessor.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp index 45da0a455c..af3edbebc2 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp @@ -745,14 +745,11 @@ AudioProcessor::BusesProperties AudioProcessor::busesPropertiesFromLayoutArray ( { 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; }