pub struct PcmBlock<'a> {
pub samples: &'a [f32],
pub f32le: &'a [u8],
pub frames: usize,
}Expand description
A decoded block after caller-supplied processing.
Fields§
§samples: &'a [f32]Interleaved floating-point samples for meters and visualization.
f32le: &'a [u8]The same samples encoded as little-endian f32 for an output sink.
frames: usizeComplete PCM frames in the block.
Auto Trait Implementations§
impl<'a> Freeze for PcmBlock<'a>
impl<'a> RefUnwindSafe for PcmBlock<'a>
impl<'a> Send for PcmBlock<'a>
impl<'a> Sync for PcmBlock<'a>
impl<'a> Unpin for PcmBlock<'a>
impl<'a> UnwindSafe for PcmBlock<'a>
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