pub struct AudioCapture { /* private fields */ }Expand description
Microphone audio capture stream.
Wraps cpal input stream. Currently a stub – real cpal integration will be added after VP (pre-implementation validation) completes.
Implementations§
Source§impl AudioCapture
impl AudioCapture
Sourcepub fn new(config: CaptureConfig) -> Self
pub fn new(config: CaptureConfig) -> Self
Create a new audio capture with the given configuration.
Sourcepub fn config(&self) -> &CaptureConfig
pub fn config(&self) -> &CaptureConfig
Get the capture configuration.
Auto Trait Implementations§
impl Freeze for AudioCapture
impl RefUnwindSafe for AudioCapture
impl Send for AudioCapture
impl Sync for AudioCapture
impl Unpin for AudioCapture
impl UnsafeUnpin for AudioCapture
impl UnwindSafe for AudioCapture
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