thanks for the quick reply.
We are building a Binaural Monitoring Tool for 7.1.4. So essentially an FX that is inserted on a 7.1.4 track.
I am using AudioChannelSet::create7point1point4()
and the plugin loads fine in Logic and reports as such.
Here is my test:
I have 12 mono tracks (spoken words left, right, etc) in Logic all routed to a 7.1.4 Group. Each panned (using Logic’s Panner) to one of the 12 speakers.
On the group, I insert Logic’s level meter (7.1.4) to ensure my pannings are correct. After this, I have inserted my plug-in.
in the processBlock I route the incoming channels, one by one to the first out.
buffer.copyFrom(0, 0, buffer, 0, 0, buffer.getNumSamples());
// Clear the output channels greater than 1
for (auto i = 1; i < totalNumOutputChannels; ++i)
buffer.clear(i, 0, buffer.getNumSamples());
build and test in Logic.
I hear: Left
then:
buffer.copyFrom(0, 0, buffer, 1, 0, buffer.getNumSamples());
// Clear the output channels greater than 1
for (auto i = 1; i < totalNumOutputChannels; ++i)
buffer.clear(i, 0, buffer.getNumSamples());
build and test in Logic.
I hear: Right
then:
buffer.copyFrom(0, 0, buffer, 2, 0, buffer.getNumSamples());
// Clear the output channels greater than 1
for (auto i = 1; i < totalNumOutputChannels; ++i)
buffer.clear(i, 0, buffer.getNumSamples());
build and test in Logic.
I hear: Left Surround Rear
- but I was expecting to hear Centre
repeat for all other channels:
I then tried to fix the order by swapping Centre and LeftSurroundRear etc, but got yet another order when repeating this test.
After some trial and error, I found the above order that gave me the expected result to match the order of AudioChannelSet AudioChannelSet::create7point1point4() in the buffer