From d4c1003f97616b277189433450c6d5b1527590c2 Mon Sep 17 00:00:00 2001 From: Liam Warfield Date: Mon, 19 Jan 2026 13:16:02 -0700 Subject: [PATCH] Fix buffering silence issue. This fixes a bug where we were still appending silence to the output buffer while not transmitting. --- gui/src/effects.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/src/effects.rs b/gui/src/effects.rs index bd84025..b8b47d3 100644 --- a/gui/src/effects.rs +++ b/gui/src/effects.rs @@ -11,7 +11,7 @@ use crate::imp; static DF_MODEL: Asset = asset!("/assets/DeepFilterNet3_ll_onnx.tar.gz"); // TODO: make this user configurable. -static DEFAULT_NOISE_FLOOR: f32 = 0.0007; +static DEFAULT_NOISE_FLOOR: f32 = 0.007; // 200ms hold at 48kHz sample rate static HOLD_SAMPLES_MAX: usize = 48000 / 5; // 9600 samples = 200ms @@ -185,6 +185,7 @@ impl AudioProcessor { TransmitState::Terminator } else { // Not transmitting and below threshold - stay silent + output.clear(); // Don't accumulate stale audio during silence TransmitState::Silent };