diff options
| author | LLLL Colonq <llll@colonq> | 2025-12-16 00:44:52 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-12-16 00:44:52 -0500 |
| commit | 8b2f77f4d2abdbf93a3342c85fa1c48f758cd256 (patch) | |
| tree | 3086ce118e8653ef259511af18fe52e56a42d0a8 | |
| parent | aeec6182dc4f569e808d238ec96d5f296d5ea752 (diff) | |
Use exponential ramp
| -rw-r--r-- | crates/teleia/src/audio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/teleia/src/audio.rs b/crates/teleia/src/audio.rs index af2c53f..f35435e 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().linear_ramp_to_value_at_time(0.0, t).expect("failed to fade out audio"); + self.gain.gain().exponential_ramp_to_value_at_time(0.0, t).expect("failed to fade out audio"); self.node.stop_with_when(t).expect("failed to stop audio while fading out"); } } |
