| 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!(" {:<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 | } |