From e1e3697931a2da1613f39beb4503d2503da6478c Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 21 Mar 2023 19:03:37 +0000 Subject: [PATCH] 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. --- modules/juce_audio_processors/format_types/juce_AU_Shared.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_AU_Shared.h b/modules/juce_audio_processors/format_types/juce_AU_Shared.h index 036c44b99b..25073c9a82 100644 --- a/modules/juce_audio_processors/format_types/juce_AU_Shared.h +++ b/modules/juce_audio_processors/format_types/juce_AU_Shared.h @@ -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);