pub struct CaptureOptions {
pub loopback: bool,
pub processing: bool,
pub level_only: bool,
}Expand description
What to capture and how to process it. All flags are orthogonal; defaults give you the full pipeline (mic + loopback + APM).
Fields§
§loopback: boolCapture the default render (output) device via WASAPI loopback. Windows only — on other platforms the flag is ignored and capture runs mic-only.
processing: boolRun the WebRTC audio processing module (AEC3 echo cancellation +
light noise suppression) on the mic path. Requires webrtc-apm.dll
on Windows; a missing dll degrades gracefully to unprocessed mic.
No-op on non-Windows platforms.
level_only: boolEmit only 10 Hz FrameEvent::Level events — no PCM, no loopback,
no APM. For “level meter preview” UI that runs while idle: ~0%
upload cost, <1% CPU.
Trait Implementations§
Source§impl Clone for CaptureOptions
impl Clone for CaptureOptions
Source§fn clone(&self) -> CaptureOptions
fn clone(&self) -> CaptureOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CaptureOptions
Source§impl Debug for CaptureOptions
impl Debug for CaptureOptions
Source§impl Default for CaptureOptions
impl Default for CaptureOptions
Source§impl<'de> Deserialize<'de> for CaptureOptionswhere
CaptureOptions: Default,
impl<'de> Deserialize<'de> for CaptureOptionswhere
CaptureOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CaptureOptions
impl RefUnwindSafe for CaptureOptions
impl Send for CaptureOptions
impl Sync for CaptureOptions
impl Unpin for CaptureOptions
impl UnsafeUnpin for CaptureOptions
impl UnwindSafe for CaptureOptions
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