pub struct Input { /* private fields */ }Expand description
The stream’s samples from its source.
Implementations§
Source§impl Input
impl Input
Sourcepub fn open(source: &Source, channels: u16, rate: u32) -> Result<Self>
pub fn open(source: &Source, channels: u16, rate: u32) -> Result<Self>
Opens source for channels channels at rate hertz.
Sourcepub fn drift_ppm(&self) -> i32
pub fn drift_ppm(&self) -> i32
How far the device’s clock runs from the stream’s, in parts per million, as the resampler follows it.
Sourcepub fn counts(&self) -> (u64, u64)
pub fn counts(&self) -> (u64, u64)
Times frames were dropped as the device ran too far ahead, and reads while it had none.
Auto Trait Implementations§
impl !RefUnwindSafe for Input
impl !UnwindSafe for Input
impl Forget for Input
impl Freeze for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
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