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:
parent
1be76c1ac0
commit
8835a24417
1 changed files with 4 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue