Skip to main content

find_by_id

Function find_by_id 

Source
pub fn find_by_id(id: &str) -> Option<MicrophoneDevice>
Expand description

Locate the MicrophoneDevice whose stable id matches id by re-probing the OS via list_microphones. Used by callers (the app crate’s start_mic_capture) to resolve the picker’s mic id back to its native gst device-uid on every session start (M-MIC.3 / AUT-284). Returns None when the mic was unplugged between enumeration and start.