pub struct AudioFrame<'a> {
pub pcm: &'a [i16],
pub sample_rate: u32,
pub channels: u32,
pub frames: u32,
}Expand description
A chunk of decoded audio, borrowed for the duration of the callback:
interleaved signed 16-bit PCM (frames * channels samples).
Fields§
§pcm: &'a [i16]§sample_rate: u32§channels: u32§frames: u32Implementations§
Source§impl AudioFrame<'_>
impl AudioFrame<'_>
Auto Trait Implementations§
impl<'a> Freeze for AudioFrame<'a>
impl<'a> RefUnwindSafe for AudioFrame<'a>
impl<'a> Send for AudioFrame<'a>
impl<'a> Sync for AudioFrame<'a>
impl<'a> Unpin for AudioFrame<'a>
impl<'a> UnsafeUnpin for AudioFrame<'a>
impl<'a> UnwindSafe for AudioFrame<'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