From f096338c3ba679f8de443ad7cef495d608e59c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 21 Aug 2026 13:48:38 +0300 Subject: [PATCH] fix(vorbis): catch softer transients --- crates/ec-vorbis/src/encode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ec-vorbis/src/encode.rs b/crates/ec-vorbis/src/encode.rs index 13f33129..20851168 100644 --- a/crates/ec-vorbis/src/encode.rs +++ b/crates/ec-vorbis/src/encode.rs @@ -139,7 +139,7 @@ const MODE_SHORT: u32 = 0; const MODE_LONG: u32 = 1; /// A tick energy jump past this multiple of its predecessor is a transient; /// a near-zero predecessor makes this trip on any onset above the floor. -const TRANSIENT_RATIO: f64 = 16.0; +const TRANSIENT_RATIO: f64 = 14.0; /// Below this per-sample mean square (-60 dBFS), a tick is not "content" at /// all — the floor that keeps digital silence, dither and fade tails from /// tripping the detector.