summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-12-16 00:45:55 -0500
committerLLLL Colonq <llll@colonq>2025-12-16 00:45:55 -0500
commit92f8960744843f2f2273a74e088875dbb07f36d8 (patch)
treecb265b609482a5a0a922510abf5425ed05e060d2
parent8b2f77f4d2abdbf93a3342c85fa1c48f758cd256 (diff)
Exponential ramp-off
-rw-r--r--crates/teleia/src/audio.rs2
1 files changed, 1 insertions, 1 deletions
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");
}
}