#[repr(u32)]pub enum AudioFormat {
UNKNOWN = 0,
U8 = 8,
S8 = 32_776,
S16LE = 32_784,
S16BE = 36_880,
S32LE = 32_800,
S32BE = 36_896,
F32LE = 33_056,
F32BE = 37_152,
}
Variants§
UNKNOWN = 0
U8 = 8
Unsigned 8-bit samples
S8 = 32_776
Signed 8-bit samples
S16LE = 32_784
Signed 16-bit samples, little-endian
S16BE = 36_880
Signed 16-bit samples, big-endian
S32LE = 32_800
Signed 32-bit samples, little-endian
S32BE = 36_896
Signed 32-bit samples, big-endian
F32LE = 33_056
32-bit floating point samples, little-endian
F32BE = 37_152
32-bit floating point samples, big-endian
Implementations§
Source§impl AudioFormat
impl AudioFormat
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§
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 From<AudioFormat> for SDL_AudioFormat
impl From<AudioFormat> for SDL_AudioFormat
Source§fn from(format: AudioFormat) -> SDL_AudioFormat
fn from(format: AudioFormat) -> SDL_AudioFormat
Converts to this type from the input type.
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