5.1.2, 9.1.6 and other less known formats

Hi, I’m trying to write to disk an interleaved file for the following channel layouts:
5.0.2, 5.1.2, 9.0.4, 9.1.4 and 9.1.6
but it seems that Pro Tools isn’t able to get correct channel layout from the files.
Everything works fine with other channel layouts tho (stereo, quad, LCRS, 5.1 etc).

I write WAVEFORMATEXTENSIBLE channel mask inside ‘fmt’ chunk, but I also tried to write a BW64 with proper ‘chna’ chunk (using libbw64): Pro Tools still doesn’t recongnize the given channel layout.

  • If for example I drop on Pro Tools timeline a 5.1.2 interleaved wav file with WAVEFORMATEXTENSIBLE channel mask, it’ll be splitted in 8 mono tracks with .A0, .A1, .A2, .A3, .A4, .A5, .A6, .A7 channel extension.

  • Or if I drop on Pro Tools a 5.1.2 interleaved wav BW64 file with proper ‘chna’ chunk, it’ll be recognized as a 7.1.

Of course if I drop on Pro Tools timeline a 5.1.2 exported by pro tools itself, it’ll be correctly recognized as a 5.1.2.

So I tried to read chunks from a Pro Tools wav file to see what I’m doing wrong, and it seems that Pro Tools doesn’t write WAVEFORMATEXTENSIBLE channel mask, neither it uses the ‘chna’ chunk: instead, there are other non-standard chunks.

What am I missing? Have you ever encountered this issue before?
Thanks for any help!