Skip to content
  • Sebastian Dröge's avatar
    audio: Add new channel positions and simplify channel expression in the caps · c227f5e7
    Sebastian Dröge authored
    The available channel positions are all channels from SMPTE 2036-2-2008
    (in that order) and DTS Coherent Acoustics, which are basically all 28
    channels that currently can appear.
    
    The channels are now expressed in the caps as a channel-mask, which
    describes which of the channels are present, and an optional
    channel-reorder-map, which must only be used after negotiation for
    fixated caps.
    
    For negotiation only the channel-mask and the channel count is relevant
    and all elements are expected to handle all reorder maps. Elements that
    don't can use the new API to reorder an audio buffer from any order to
    another order.
    
    This simplifies negotiation a lot while still having as few reorderings
    necassary as possible and still allow all kinds of channel layouts.
    c227f5e7