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
InvalidMonoFrontLeftApple, Dolby call this 'Left'
FrontRightApple, Dolby call this 'Right'
FrontCenterApple, Dolby call this 'Center'
RearCenterMicrosoft calls this 'Back Center', Apple calls this 'Center Surround', Dolby calls this 'Surround Rear Center'
RearLeftMicrosoft calls this 'Back Left', Apple calls this 'Left Surround', Dolby calls this 'Surround Rear Left'
RearRightMicrosoft calls this 'Back Right', Apple calls this 'Right Surround', Dolby calls this 'Surround Rear Right'
LfeAka subwoofer. Microsoft calls this 'Low Frequency', Apple calls this 'LFEScreen'
FrontLeftOfCenterApple, Dolby call this 'Left Center'
FrontRightOfCenterApple, Dolby call this 'Right Center'
SideLeftApple calls this 'Left Surround Direct', Dolby calls this 'Surround Left'
SideRightApple calls this 'Right Surround Direct', Dolby calls this 'Surround Right'
Aux0Aux1Aux2Aux3Aux4Aux5Aux6Aux7Aux8Aux9Aux10Aux11Aux12Aux13Aux14Aux15Aux16Aux17Aux18Aux19Aux20Aux21Aux22Aux23Aux24Aux25Aux26Aux27Aux28Aux29Aux30Aux31TopCenterApple calls this 'Top Center Surround'
TopFrontLeftApple calls this 'Vertical Height Left'
TopFrontRightApple calls this 'Vertical Height Right'
TopFrontCenterApple calls this 'Vertical Height Center'
TopRearLeftMicrosoft and Apple call this 'Top Back Left'
TopRearRightMicrosoft and Apple call this 'Top Back Right'
TopRearCenterMicrosoft and Apple call this 'Top Back Center'
Methods
impl Position[src]
impl Positionpub fn to_mask(self) -> PositionMask[src]
pub fn to_mask(self) -> PositionMaskMakes a bit mask from a channel position.
pub fn to_string(pos: Self) -> Option<Cow<'static, str>>[src]
pub fn to_string(pos: Self) -> Option<Cow<'static, str>>Return a text label for the specified channel position
pub fn to_pretty_string(pos: Self) -> Option<String>[src]
pub fn to_pretty_string(pos: Self) -> Option<String>Return a human readable text label for the specified channel position.
pub fn from_string(s: &str) -> Self[src]
pub fn from_string(s: &str) -> SelfThe inverse of to_string.
Trait Implementations
impl Debug for Position[src]
impl Debug for Positionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Position[src]
impl Copy for Positionimpl Clone for Position[src]
impl Clone for Positionfn clone(&self) -> Position[src]
fn clone(&self) -> PositionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Position[src]
impl PartialEq for Positionfn eq(&self, other: &Position) -> bool[src]
fn eq(&self, other: &Position) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Position[src]
impl Eq for Positionimpl Default for Position[src]
impl Default for Positionimpl From<Position> for pa_channel_position_t[src]
impl From<Position> for pa_channel_position_timpl From<pa_channel_position_t> for Position[src]
impl From<pa_channel_position_t> for Positionfn from(p: pa_channel_position_t) -> Self[src]
fn from(p: pa_channel_position_t) -> SelfPerforms the conversion.