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

AU Client: Fix build problem when PreferredChannelConfigurations enabled

This commit is contained in:
reuk 2022-09-14 16:16:26 +01:00
parent 9f803fe88b
commit 77f5da93ac
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -2354,7 +2354,7 @@ private:
#ifdef JucePlugin_PreferredChannelConfigurations
const short configs[][2] = { JucePlugin_PreferredChannelConfigurations };
if (AudioUnitHelpers::isLayoutSupported (*juceFilter, isInput, busNum, ch, configs))
tags.addIfNotAlreadyThere (static_cast<AudioChannelLayoutTag> ((int) kAudioChannelLayoutTag_DiscreteInOrder | ch));
tags.insert (static_cast<AudioChannelLayoutTag> ((int) kAudioChannelLayoutTag_DiscreteInOrder | ch));
#else
if (bus->isLayoutSupported (AudioChannelSet::discreteChannels (ch)))
tags.insert (static_cast<AudioChannelLayoutTag> ((int) kAudioChannelLayoutTag_DiscreteInOrder | ch));