pub struct AudioInput {
pub start_sample: i64,
pub start: MediaTime,
pub frames: u32,
pub rate: u32,
pub channels: u32,
pub samples: Vec<f32>,
}Expand description
An audio block handed to the extractor.
Fields§
§start_sample: i64The block’s first sample, at rate from the clock’s zero.
start: MediaTimeThe block’s first sample time, the tick at or before it.
frames: u32Frames in the block.
rate: u32The sample rate.
channels: u32The channel count.
samples: Vec<f32>channels * frames planar samples, channel after channel.
Trait Implementations§
Source§impl Clone for AudioInput
impl Clone for AudioInput
Source§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 Forget for AudioInput
impl Freeze for AudioInput
impl Move for AudioInput
impl RefUnwindSafe for AudioInput
impl Send for AudioInput
impl Sync for AudioInput
impl Unpin for AudioInput
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more