Closed davemar-bbc closed 6 months ago
I'll fix these test fails.
Thanks. As for the general approach I'd be tempted to just have one field in the CHNA structure (AudioID), which should simplify things a bit. There's still only one field in the CHNA called trackRef, and that's what we decided to do for libbw64.
We should check that the rendering item selection code rejects uses of this for now, hopefully with a sensible error message. Eventually we'd want to update this to work properly; I'll have a think about how that should work.
Does libadm carry both audioTrackFormat and audioChannelFormat refs in audioTrackUID, or does it use trackRef like the CHNA does in libbw64?
Both, or at least it will once the -2 changes are done. I think that makes sense here too, to keep a good correspondence between the ADM and the EAR data structures.
This was merged as part of the -2 work -- thanks!
Added audioStreamFormat and audioTrackFormat bypass for audioTrackUID and CHNA chunk. So audioChannelFormat can be referenced directly for PCM instead. This matches up with BS.2076-2.
Where audioTrackFormatIDRefs would have been non-optional in the past, they now have to be optional as they could be replaced by audioChannelFormatIDRefs instead.