From f82224a46f3bd22a2071537a2143408cef4248c7 Mon Sep 17 00:00:00 2001 From: David Kleingeld Date: Mon, 15 Sep 2025 15:27:07 +0200 Subject: [PATCH] make AGC slightly faster --- crates/audio/src/audio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/audio/src/audio.rs b/crates/audio/src/audio.rs index 3e9b32c9fba6a4b3deb954f76634fb0d8f2580b9..b188371909172abbb06a2532a9a323b0f6260b08 100644 --- a/crates/audio/src/audio.rs +++ b/crates/audio/src/audio.rs @@ -201,7 +201,7 @@ impl Audio { .periodic_access(Duration::from_millis(100), move |denoise| { denoise.set_enabled(LIVE_SETTINGS.denoise.load(Ordering::Relaxed)); }) - .automatic_gain_control(1.0, 4.0, 0.0, 5.0) + .automatic_gain_control(1.0, 2.0, 0.0, 5.0) .periodic_access(Duration::from_millis(100), move |agc_source| { agc_source .set_enabled(LIVE_SETTINGS.auto_microphone_volume.load(Ordering::Relaxed)); @@ -224,7 +224,7 @@ impl Audio { cx: &mut App, ) -> anyhow::Result<()> { let (replay_source, source) = source - .automatic_gain_control(1.0, 4.0, 0.0, 5.0) + .automatic_gain_control(1.0, 2.0, 0.0, 5.0) .periodic_access(Duration::from_millis(100), move |agc_source| { agc_source.set_enabled(LIVE_SETTINGS.auto_speaker_volume.load(Ordering::Relaxed)); })