Enum symphonia_core::sample::SampleFormat
source · pub enum SampleFormat {
U8,
U16,
U24,
U32,
S8,
S16,
S24,
S32,
F32,
F64,
}
Expand description
SampleFormat describes the data encoding for an audio sample.
Variants§
U8
Unsigned 8-bit integer.
U16
Unsigned 16-bit integer.
U24
Unsigned 24-bit integer.
U32
Unsigned 32-bit integer.
S8
Signed 8-bit integer.
S16
Signed 16-bit integer.
S24
Signed 24-bit integer.
S32
Signed 32-bit integer.
F32
Single precision (32-bit) floating point.
F64
Double precision (64-bit) floating point.
Trait Implementations§
source§impl Clone for SampleFormat
impl Clone for SampleFormat
source§fn clone(&self) -> SampleFormat
fn clone(&self) -> SampleFormat
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 SampleFormat
impl Debug for SampleFormat
impl Copy for SampleFormat
Auto Trait Implementations§
impl RefUnwindSafe for SampleFormat
impl Send for SampleFormat
impl Sync for SampleFormat
impl Unpin for SampleFormat
impl UnwindSafe for SampleFormat
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