BlueGit

ict rusty-teams

Files

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

mic_effects_probe.rs

chore: cargo fmt the workspace
metis Daniel Däschle · pushed by metis · 2 weeks ago
a6592765 History
mic_effects_probe.rs 695 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!(
10 " {:<28} on={} can_set={}",
11 effect.name(),
12 effect.enabled,
13 effect.can_set
14 );
15 }
16 }
17 Err(error) => println!("probe failed: {error}"),
18 }
19 #[cfg(not(windows))]
20 println!("Windows only");
21}