MCPcopy Create free account
hub / github.com/PerroEngine/Perro / clip_from_state

Method clip_from_state

perro_source/audio_stack/perro_pawdio/src/mic.rs:612–616  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

610/// Wireless and USB mics come and go, so every call re-queries the backend
611/// instead of serving a cached list.
612#[cfg(not(target_arch = "wasm32"))]
613pub fn mic_devices() -> Result<Vec<MicDevice>, String> {
614 let inputs = enumerate_inputs()?;
615 let names: Vec<&str> = inputs.iter().map(|input| input.name.as_str()).collect();
616 let labels = dedupe_labels(&names);
617 let mut default_taken = false;
618 let devices = inputs
619 .into_iter()

Callers 2

stopMethod · 0.80
clipMethod · 0.80

Calls 3

okMethod · 0.80
cloneMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected