Enum libpulse_binding::sample::Format[][src]

#[repr(C)]
pub enum Format { U8, ALaw, ULaw, S16le, S16be, F32le, F32be, S32le, S32be, S24le, S24be, S24_32le, S24_32be, Invalid, }

Sample format

Variants

Unsigned 8 Bit PCM.

8 Bit a-Law.

8 Bit mu-Law.

Signed 16 Bit PCM, little endian (PC).

Signed 16 Bit PCM, big endian.

32 Bit IEEE floating point, little endian (PC), range -1.0 to 1.0.

32 Bit IEEE floating point, big endian, range -1.0 to 1.0.

Signed 32 Bit PCM, little endian (PC).

Signed 32 Bit PCM, big endian.

Signed 24 Bit PCM packed, little endian (PC).

Signed 24 Bit PCM packed, big endian.

Signed 24 Bit PCM in LSB of 32 Bit words, little endian (PC).

Signed 24 Bit PCM in LSB of 32 Bit words, big endian.

An invalid value.

Methods

impl Format
[src]

Similar to Spec::sample_size but take a sample format instead of full sample spec.

Returns a descriptive string for the specified sample format.

Parse a sample format text. Inverse of to_string.

Returns true when the specified format is little endian, false if big endian. Returns None when endianness does not apply to this format, or if unknown.

Returns true when the specified format is big endian, false if little endian. Returns None when endianness does not apply to this format, or if unknown.

Is format native endian?

Returns true when the specified format is native endian, false when not. Returns None when endianness does not apply to the specified format, or endianness is unknown

Is format reverse of native endian?

Returns true when the specified format is reverse endian, false when not. Returns None when endianness does not apply to the specified format, or endianness is unknown.

Trait Implementations

impl Debug for Format
[src]

Formats the value using the given formatter. Read more

impl Copy for Format
[src]

impl Clone for Format
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Format
[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 Format
[src]

impl From<Format> for pa_sample_format_t
[src]

Performs the conversion.

impl From<pa_sample_format_t> for Format
[src]

Performs the conversion.

impl Default for Format
[src]

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

Auto Trait Implementations

impl Send for Format

impl Sync for Format