Channel Maps

Overview

Channel maps provide a way to associate channels in a stream with a specific speaker position. This relieves applications of having to make sure their channel order is identical to the final output.

Initialisation

A channel map consists of an array of pa_channel_position values, one for each channel. This array is stored together with a channel count in a pa_channel_map structure.

Before filling the structure, the application must initialise it using pa_channel_map_init(). There are also a number of convenience functions for standard channel mappings:

Convenience Functions

The library contains a number of convenience functions for dealing with channel maps: