pub struct AudioFrame {
pub samples: Vec<f32>,
pub sample_rate: u32,
pub channels: u16,
pub timestamp_usec: i64,
}Expand description
Interleaved f32 audio frame for server input.
Fields§
§samples: Vec<f32>Interleaved f32 samples.
sample_rate: u32Sample rate in Hz.
channels: u16Number of channels.
timestamp_usec: i64Timestamp in microseconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioFrame
impl RefUnwindSafe for AudioFrame
impl Send for AudioFrame
impl Sync for AudioFrame
impl Unpin for AudioFrame
impl UnsafeUnpin 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