diff options
| author | LLLL Colonq <llll@colonq> | 2025-12-16 00:48:15 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-12-16 00:48:15 -0500 |
| commit | f0fc789a8ed6ef67605640ff25c7e470a421e5ec (patch) | |
| tree | f9fe993c7060997eeb0dffab7fa88596443b70ba | |
| parent | 6dcc17b0b103c2f599e81f3adbf8e2ec0d375347 (diff) | |
Initialize gain, but correctly
| -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 75c37c8..0988b64 100644 --- a/crates/teleia/src/audio.rs +++ b/crates/teleia/src/audio.rs @@ -81,7 +81,7 @@ impl Audio { if let Some(e) = me { source.set_loop_end(e) } } let gain = ctx.audio.create_gain().ok()?; - gain.gain().set_value_at_time(0.0, ctx.audio.current_time()).ok()?; + gain.gain().set_value_at_time(0.5, ctx.audio.current_time()).ok()?; gain.connect_with_audio_node(&ctx.audio.destination()).ok()?; source.connect_with_audio_node(&gain).ok()?; source.start().ok()?; |
