Module libpulse_binding::channelmap
source · Expand description
Constants and routines for handing channel mapping.
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 Position
values, one for each channel. This array is
stored together with a channel count in a Map
structure.
Before filling the structure, the application must initialise it using Map::init()
. There
are also a number of convenience functions for standard channel mappings:
Map::init_mono()
: Create a channel map with only mono audio.Map::init_stereo()
: Create a standard stereo mapping.Map::init_auto()
: Create a standard channel map for a specific number of channels.Map::init_extend()
: Similar toMap::init_auto()
but synthesize a channel map if no predefined one is known for the specified number of channels.
Structs
- A channel map which can be used to attach labels to specific channels of a stream.
Enums
- Channel map definition standards.
- A list of channel labels.
Constants
- Position mask covering all positions.
Type Definitions
- A mask of channel positions.