forge
Explore
Log in

Don't you dare go Hollow

Catch softer transients

Browse files at this commit

f096338c3ba679f8de443ad7cef495d608e59c43Ahmet Kaan GümüşParent: e0b760b
  • fix
    • catch softer transients
Show full message
fix(vorbis): catch softer transients
crates/ec-vorbis/src/encode.rsmodified+1 -1
@@ -139,7 +139,7 @@ const MODE_SHORT: u32 = 0;
139 const MODE_LONG: u32 = 1;139 const MODE_LONG: u32 = 1;
140 /// A tick energy jump past this multiple of its predecessor is a transient;140 /// A tick energy jump past this multiple of its predecessor is a transient;
141 /// a near-zero predecessor makes this trip on any onset above the floor.141 /// a near-zero predecessor makes this trip on any onset above the floor.
142-const TRANSIENT_RATIO: f64 = 16.0;142+const TRANSIENT_RATIO: f64 = 14.0;
143 /// Below this per-sample mean square (-60 dBFS), a tick is not "content" at143 /// Below this per-sample mean square (-60 dBFS), a tick is not "content" at
144 /// all — the floor that keeps digital silence, dither and fade tails from144 /// all — the floor that keeps digital silence, dither and fade tails from
145 /// tripping the detector.145 /// tripping the detector.