pub struct AudioInput {
pub samples: Vec<f32>,
pub sample_rate: u32,
pub channels: u16,
}
Expand description
Raw audio input consisting of PCM samples and a sample rate.
Fields§
§samples: Vec<f32>
§sample_rate: u32
§channels: u16
Implementations§
Trait Implementations§
Source§impl Clone for AudioInput
impl Clone for AudioInput
Source§fn clone(&self) -> AudioInput
fn clone(&self) -> AudioInput
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioInput
impl Debug for AudioInput
Source§impl PartialEq for AudioInput
impl PartialEq for AudioInput
impl StructuralPartialEq for AudioInput
Auto Trait Implementations§
impl Freeze for AudioInput
impl RefUnwindSafe for AudioInput
impl Send for AudioInput
impl Sync for AudioInput
impl Unpin for AudioInput
impl UnwindSafe for AudioInput
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