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

AU Client: Check explicit channel layouts all the way up to 16 ins/outs

AUs are more likely to have 16 channels on a bus now that the 9.1.6
Atmos layout is available.
This commit is contained in:
reuk 2023-03-21 19:03:37 +00:00
parent 5eadaf75be
commit e1e3697931
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -373,7 +373,10 @@ struct AudioUnitHelpers
}
auto layout = processor.getBusesLayout();
auto maxNumChanToCheckFor = 9;
// The 'standard' layout with the most channels defined is AudioChannelSet::create9point1point6().
// This value should be updated if larger standard channel layouts are added in the future.
constexpr auto maxNumChanToCheckFor = 16;
auto defaultInputs = processor.getChannelCountOfBus (true, 0);
auto defaultOutputs = processor.getChannelCountOfBus (false, 0);