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 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
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 moresourceimpl 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
sourcefn eq(&self, other: &AudioFormat) -> bool
fn eq(&self, other: &AudioFormat) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more