Channels Layout Order matters?

Hi Everyone

I have created a test audio plug-in (VST3) which actually does nothing with 2 buses as shown below

As in juce code below

AudioChannelSet AudioChannelSet::create9point1point6() { return AudioChannelSet ({ left, right, centre, LFE, leftSurroundSide, rightSurroundSide, leftSurroundRear, rightSurroundRear, wideLeft, wideRight, topFrontLeft, topFrontRight, topSideLeft, topSideRight, topRearLeft, topRearRight }); }

the wideLeft should be at channel 8.

When I load my plug-in in AudioPluginsHost, I see that wide left appears at the channel index 14

Shouldn’t the tips in AudioPluginsHost much the order as this has been created by the AudioChannelSet::create9point1point6() method?

Thanks in advance for any reply

No, the implementation of create9point1point6() creates an AudioChannelSet that contains the channels that were passed in, but not necessarily in the same order.

To convert between channel indices and channel types, use AudioChannelSet::getTypeOfChannel() and AudioChannelSet::getChannelIndexForType(). This is a good idea whenever working with buffers that have an AudioChannelSet layout.

Thanks for you quick reply reuk. I understand now what is happening.