1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Fixed another typo and removed unecessary for loop

This commit is contained in:
hogliux 2016-09-20 12:33:38 +01:00
parent 1be76c1ac0
commit 8835a24417

View file

@ -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;
}