Enum libpulse_binding::channelmap::Position[][src]

#[repr(C)]
pub enum Position { Invalid, Mono, FrontLeft, FrontRight, FrontCenter, RearCenter, RearLeft, RearRight, Lfe, FrontLeftOfCenter, FrontRightOfCenter, SideLeft, SideRight, Aux0, Aux1, Aux2, Aux3, Aux4, Aux5, Aux6, Aux7, Aux8, Aux9, Aux10, Aux11, Aux12, Aux13, Aux14, Aux15, Aux16, Aux17, Aux18, Aux19, Aux20, Aux21, Aux22, Aux23, Aux24, Aux25, Aux26, Aux27, Aux28, Aux29, Aux30, Aux31, TopCenter, TopFrontLeft, TopFrontRight, TopFrontCenter, TopRearLeft, TopRearRight, TopRearCenter, }

A list of channel labels

Note, certain aliases, specifically Left, Right, Center and Subwoofer, available in the equivalent C enum are not provided here, since Rust does not allow aliases.

Variants

Apple, Dolby call this 'Left'

Apple, Dolby call this 'Right'

Apple, Dolby call this 'Center'

Microsoft calls this 'Back Center', Apple calls this 'Center Surround', Dolby calls this 'Surround Rear Center'

Microsoft calls this 'Back Left', Apple calls this 'Left Surround', Dolby calls this 'Surround Rear Left'

Microsoft calls this 'Back Right', Apple calls this 'Right Surround', Dolby calls this 'Surround Rear Right'

Aka subwoofer. Microsoft calls this 'Low Frequency', Apple calls this 'LFEScreen'

Apple, Dolby call this 'Left Center'

Apple, Dolby call this 'Right Center'

Apple calls this 'Left Surround Direct', Dolby calls this 'Surround Left'

Apple calls this 'Right Surround Direct', Dolby calls this 'Surround Right'

Apple calls this 'Top Center Surround'

Apple calls this 'Vertical Height Left'

Apple calls this 'Vertical Height Right'

Apple calls this 'Vertical Height Center'

Microsoft and Apple call this 'Top Back Left'

Microsoft and Apple call this 'Top Back Right'

Microsoft and Apple call this 'Top Back Center'

Methods

impl Position
[src]

Makes a bit mask from a channel position.

Return a text label for the specified channel position

Return a human readable text label for the specified channel position.

The inverse of to_string.

Trait Implementations

impl Debug for Position
[src]

Formats the value using the given formatter. Read more

impl Copy for Position
[src]

impl Clone for Position
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Position
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Position
[src]

impl Default for Position
[src]

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

impl From<Position> for pa_channel_position_t
[src]

Performs the conversion.

impl From<pa_channel_position_t> for Position
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Position

impl Sync for Position