Enum sdl2::audio::AudioFormat
source · [−]#[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
Implementations
sourceimpl AudioFormat
impl AudioFormat
sourcepub const fn u16_sys() -> AudioFormat
pub const fn u16_sys() -> AudioFormat
Unsigned 16-bit samples, native endian
sourcepub const fn s16_sys() -> AudioFormat
pub const fn s16_sys() -> AudioFormat
Signed 16-bit samples, native endian
sourcepub const fn s32_sys() -> AudioFormat
pub const fn s32_sys() -> AudioFormat
Signed 32-bit samples, native endian
sourcepub const fn f32_sys() -> AudioFormat
pub const fn f32_sys() -> AudioFormat
32-bit floating point samples, native endian
Trait Implementations
sourceimpl Clone for AudioFormat
impl Clone for AudioFormat
sourcefn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AudioFormat
impl Debug for AudioFormat
sourceimpl Hash for AudioFormat
impl Hash for AudioFormat
sourceimpl PartialEq<AudioFormat> for AudioFormat
impl PartialEq<AudioFormat> for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralEq for AudioFormat
impl StructuralPartialEq for AudioFormat
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more