pub struct Chunk {
pub pcm: Vec<i16>,
pub sample_rate: u32,
}Expand description
One buffer of decoded audio: interleaved stereo i16 frames.
Fields§
§pcm: Vec<i16>Interleaved stereo samples (pcm.len() == frames * 2).
sample_rate: u32Sample rate the codec is currently producing, in Hz.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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