#[non_exhaustive]pub enum SampleFormat {
S16,
F32,
F32Planar,
U8,
S24,
S32,
F64,
}Expand description
Raw audio sample layout. Multi-byte samples are little-endian; containers
that store big-endian PCM (QuickTime twos, in24, …) swap on the way
in and out, so a buffer of a given format always means one byte order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
S16
Signed 16-bit, interleaved.
F32
32-bit float, interleaved.
F32Planar
32-bit float, planar (one buffer per channel).
U8
Unsigned 8-bit (128 = silence), interleaved.
S24
Signed 24-bit packed in 3 bytes, interleaved.
S32
Signed 32-bit, interleaved.
F64
64-bit float, interleaved.
Implementations§
Source§impl SampleFormat
impl SampleFormat
Trait Implementations§
Source§impl Clone for SampleFormat
impl Clone for SampleFormat
impl Copy for SampleFormat
Source§impl Debug for SampleFormat
impl Debug for SampleFormat
impl Eq for SampleFormat
Source§impl Hash for SampleFormat
impl Hash for SampleFormat
Source§impl PartialEq for SampleFormat
impl PartialEq for SampleFormat
impl StructuralPartialEq for SampleFormat
Auto Trait Implementations§
impl Forget for SampleFormat
impl Freeze for SampleFormat
impl Move for SampleFormat
impl RefUnwindSafe for SampleFormat
impl Send for SampleFormat
impl Sync for SampleFormat
impl Unpin for SampleFormat
impl UnsafeUnpin 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