#[repr(C)]pub struct AudioFrame {
pub sample_rate: u32,
pub frames: u32,
pub data: *const i16,
}
Expand description
A sample from the audio stream.
Fields§
§sample_rate: u32
§frames: u32
The number of samples in the current audio frame.
data: *const i16
Pointer to the sample raw buffer.
Trait Implementations§
Source§impl Debug for AudioFrame
impl Debug for AudioFrame
Source§impl Default for AudioFrame
impl Default for AudioFrame
impl Send for AudioFrame
impl Sync for AudioFrame
Auto Trait Implementations§
impl Freeze for AudioFrame
impl RefUnwindSafe for AudioFrame
impl Unpin for AudioFrame
impl UnwindSafe for AudioFrame
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