From a14ca3377d92be36ab1f8dc0e6df4f583386ae0a 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 52b430d8a953d083fde38159cf32a95cbaa932bb..1605e267c74a059ab2d2fcb022c42f0137c9718f 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)); })