Struct libpulse_binding::channelmap::Map [] [src]

#[repr(C)]
pub struct Map { pub channels: u8, pub map: [Position; 32], }

A channel map which can be used to attach labels to specific channels of a stream. These values are relevant for conversion and mixing of streams.

Fields

Number of channels mapped

Channel labels

Methods

impl Map
[src]

[src]

Parse a channel position list or well-known mapping name into a channel map structure. This turns the output of print and to_name back into a Map.

[src]

Initialize the specified channel map and return a pointer to it. The map will have a defined state but is_valid will fail for it.

[src]

Initialize the specified channel map for monaural audio and return a pointer to it.

[src]

Initialize the specified channel map for stereophonic audio and return a pointer to it.

[src]

Initialize the specified channel map for the specified number of channels using default labels and return a pointer to it.

This call will fail (return None) if there is no default channel map known for this specific number of channels and mapping.

[src]

Similar to init_auto but instead of failing if no default mapping is known with the specified parameters it will synthesize a mapping based on a known mapping with fewer channels and fill up the rest with AUX0...AUX31 channels.

[src]

Make a human readable string from the map.

[src]

Compare whether or not two maps are equal.

[src]

Check whether or not the map is considered valid.

[src]

Checks whether or not the specified map is compatible with the specified sample spec.

[src]

Checks whether every channel defined in of is also defined in self.

[src]

Checks whether or not it makes sense to apply a volume "balance" with this mapping, i.e. if there are left/right channels available.

[src]

Checks whether or not it makes sense to apply a volume "fade" (i.e. "balance" between front and rear) with this mapping, i.e. if there are front/rear channels available.

[src]

Checks whether or not it makes sense to apply a volume "lfe balance" (i.e. "balance" between LFE and non-LFE channels) with this mapping, i.e. if there are LFE and non-LFE channels available.

[src]

Tries to find a well-known channel mapping name for this channel mapping, i.e. "stereo", "surround-71" and so on. This name can be parsed with new_from_string.

[src]

Similar to to_name, but returning prettier, human readable text labels, i.e. "Stereo", "Surround 7.1" and so on.

[src]

Checks whether or not the specified channel position is available at least once in the map.

[src]

Generates a bit mask from a map.

Trait Implementations

impl Debug for Map
[src]

[src]

Formats the value using the given formatter.

impl Copy for Map
[src]

impl Clone for Map
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Map
[src]

[src]

Returns the "default value" for a type. Read more