BlueGit

ict rusty-teams

Files

rusty-teams / crates / calling / examples / mic_effects_probe.rs

mic_effects_probe.rs

mic_effects_probe.rs 597 B Download Raw
1//! Lists the Windows effects (AEC, noise suppression, AGC, beamforming...) on the default communications microphone.
2
3fn main() {
4 #[cfg(windows)]
5 match calling::probe_effects(&calling::devices::DeviceChoice::SystemDefault) {
6 Ok((device, effects)) => {
7 println!("microphone: {device}");
8 for effect in effects {
9 println!(" {:<28} on={} can_set={}", effect.name(), effect.enabled, effect.can_set);
10 }
11 }
12 Err(error) => println!("probe failed: {error}"),
13 }
14 #[cfg(not(windows))]
15 println!("Windows only");
16}