[go: up one dir, main page]

[][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 fn u16_sys() -> AudioFormat[src]

Unsigned 16-bit samples, native endian

pub fn s16_sys() -> AudioFormat[src]

Signed 16-bit samples, native endian

pub fn s32_sys() -> AudioFormat[src]

Signed 32-bit samples, native endian

pub fn f32_sys() -> AudioFormat[src]

32-bit floating point samples, native endian

Trait Implementations

impl Clone for AudioFormat[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for AudioFormat[src]

impl Copy for AudioFormat[src]

impl PartialEq<AudioFormat> for AudioFormat[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for AudioFormat[src]

impl Hash for AudioFormat[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for AudioFormat

impl Sync for AudioFormat

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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