[][src]Enum sdl2::audio::AudioFormat

#[repr(i32)]pub enum AudioFormat {
    U8,
    S8,
    U16LSB,
    U16MSB,
    S16LSB,
    S16MSB,
    S32LSB,
    S32MSB,
    F32LSB,
    F32MSB,
}

Variants

U8

Unsigned 8-bit samples

S8

Signed 8-bit samples

U16LSB

Unsigned 16-bit samples, little-endian

U16MSB

Unsigned 16-bit samples, big-endian

S16LSB

Signed 16-bit samples, little-endian

S16MSB

Signed 16-bit samples, big-endian

S32LSB

Signed 32-bit samples, little-endian

S32MSB

Signed 32-bit samples, big-endian

F32LSB

32-bit floating point samples, little-endian

F32MSB

32-bit floating point samples, big-endian

Methods

impl AudioFormat[src]

pub const fn u16_sys() -> AudioFormat[src]

Unsigned 16-bit samples, native endian

pub const fn s16_sys() -> AudioFormat[src]

Signed 16-bit samples, native endian

pub const fn s32_sys() -> AudioFormat[src]

Signed 32-bit samples, native endian

pub const fn f32_sys() -> AudioFormat[src]

32-bit floating point samples, native endian

Trait Implementations

impl Clone for AudioFormat[src]

impl Copy for AudioFormat[src]

impl Debug for AudioFormat[src]

impl Eq for AudioFormat[src]

impl Hash for AudioFormat[src]

impl PartialEq<AudioFormat> for AudioFormat[src]

impl StructuralEq for AudioFormat[src]

impl StructuralPartialEq for AudioFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioFormat

impl Send for AudioFormat

impl Sync for AudioFormat

impl Unpin for AudioFormat

impl UnwindSafe for AudioFormat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.