Skip to main content

SILENCE_THRESHOLD

Constant SILENCE_THRESHOLD 

Source
const SILENCE_THRESHOLD: f32 = 0.003;
Expand description

A measured output peak above this counts as real audio. Digital silence is ~0.0, so any small positive floor cleanly separates a paused player (no output) from an active one; the margin ignores denormal/dither noise.