pub struct AudioFrame {
pub samples: Vec<i16>,
pub rate: u32,
}Expand description
A mono PCM audio frame plus its sample rate — the unit streamed into a call
via push_audio / out of one via subscribe_received_audio.
A mono PCM (s16) audio frame plus its sample rate — the unit fed into a call
via push_audio and handed out of one via subscribe_received_audio.
Fields§
§samples: Vec<i16>Mono 16-bit PCM samples.
rate: u32Sample rate in Hz.
Trait Implementations§
Source§impl Clone for AudioFrame
impl Clone for AudioFrame
Source§fn clone(&self) -> AudioFrame
fn clone(&self) -> AudioFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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