From 92f8960744843f2f2273a74e088875dbb07f36d8 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 16 Dec 2025 00:45:55 -0500 Subject: Exponential ramp-off --- crates/teleia/src/audio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/teleia/src/audio.rs b/crates/teleia/src/audio.rs index f35435e..3655792 100644 --- a/crates/teleia/src/audio.rs +++ b/crates/teleia/src/audio.rs @@ -32,7 +32,7 @@ impl AudioPlayingHandle { } pub fn fade_out(&self, ctx: &Context, time: f32) { let t = ctx.audio.current_time() + time as f64; - self.gain.gain().exponential_ramp_to_value_at_time(0.0, t).expect("failed to fade out audio"); + self.gain.gain().exponential_ramp_to_value_at_time(0.001, t).expect("failed to fade out audio"); self.node.stop_with_when(t).expect("failed to stop audio while fading out"); } } -- cgit v1.2.3