pub enum AudioData {
Interleaved(Vec<u8>),
Planar(Vec<Vec<u8>>),
}Expand description
Channel layout of the raw sample bytes.
Variants§
Interleaved(Vec<u8>)
Samples alternate across channels: L R L R ….
Planar(Vec<Vec<u8>>)
One byte buffer per channel.
Trait Implementations§
impl StructuralPartialEq for AudioData
Auto Trait Implementations§
impl Freeze for AudioData
impl RefUnwindSafe for AudioData
impl Send for AudioData
impl Sync for AudioData
impl Unpin for AudioData
impl UnsafeUnpin for AudioData
impl UnwindSafe for AudioData
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