oa::AudioCapture

Stateful default-device audio capture session.

StRust public API

Declaration

pub struct AudioCapture { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn start(&mut self) -> Result<()>
pub fn stop(&mut self) -> Result<()>
pub fn poll(&mut self, max_frames: u32) -> Option<AudioCaptureChunk>
pub fn close(&mut self) -> Result<()>
pub fn is_open(&self) -> bool
pub fn is_started(&self) -> bool
pub fn dropped_frame_count(&self) -> u64
pub fn device_error_count(&self) -> u64
fn drop(&mut self)

Associated Functions

pub fn open(engine: &Engine, config: AudioCaptureConfig) -> Result<Self>

Public Method Documentation

pub fn start(&mut self) -> Result<()>
No public source comment is attached to this declaration.
pub fn stop(&mut self) -> Result<()>
No public source comment is attached to this declaration.
pub fn poll( &mut self, max_frames: u32 ) -> Option<AudioCaptureChunk>
No public source comment is attached to this declaration.
pub fn close(&mut self) -> Result<()>
No public source comment is attached to this declaration.
pub fn is_open( &self ) -> bool
Open the default input device. The returned session is initially stopped.
pub fn is_started( &self ) -> bool
Open the default input device. The returned session is initially stopped.
pub fn dropped_frame_count( &self ) -> u64
Open the default input device. The returned session is initially stopped.
pub fn device_error_count( &self ) -> u64
Open the default input device. The returned session is initially stopped.
fn drop( &mut self )
No public source comment is attached to this declaration.
pub fn open( engine: &Engine, config: AudioCaptureConfig ) -> Result<Self>
No public source comment is attached to this declaration.