Enum sdl2::audio::AudioFormat
source · #[repr(i32)]pub enum AudioFormat {
U8 = 8,
S8 = 32_776,
U16LSB = 16,
U16MSB = 4_112,
S16LSB = 32_784,
S16MSB = 36_880,
S32LSB = 32_800,
S32MSB = 36_896,
F32LSB = 33_056,
F32MSB = 37_152,
}
Variants§
U8 = 8
Unsigned 8-bit samples
S8 = 32_776
Signed 8-bit samples
U16LSB = 16
Unsigned 16-bit samples, little-endian
U16MSB = 4_112
Unsigned 16-bit samples, big-endian
S16LSB = 32_784
Signed 16-bit samples, little-endian
S16MSB = 36_880
Signed 16-bit samples, big-endian
S32LSB = 32_800
Signed 32-bit samples, little-endian
S32MSB = 36_896
Signed 32-bit samples, big-endian
F32LSB = 33_056
32-bit floating point samples, little-endian
F32MSB = 37_152
32-bit floating point samples, big-endian
Implementations§
source§impl AudioFormat
impl AudioFormat
sourcepub fn u16_sys() -> AudioFormat
pub fn u16_sys() -> AudioFormat
Unsigned 16-bit samples, native endian
sourcepub fn s16_sys() -> AudioFormat
pub fn s16_sys() -> AudioFormat
Signed 16-bit samples, native endian
sourcepub fn s32_sys() -> AudioFormat
pub fn s32_sys() -> AudioFormat
Signed 32-bit samples, native endian
sourcepub fn f32_sys() -> AudioFormat
pub fn f32_sys() -> AudioFormat
32-bit floating point samples, native endian
Trait Implementations§
source§impl Clone for AudioFormat
impl Clone for AudioFormat
source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AudioFormat
impl Debug for AudioFormat
source§impl Hash for AudioFormat
impl Hash for AudioFormat
source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)