| 1 | //! Lists the Windows effects (AEC, noise suppression, AGC, beamforming...) on the default communications microphone. |
| 2 | |
| 3 | fn 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 | } |