pub fn loudness_range(
short_term_lufs: &[f32],
scratch: &mut [f32],
) -> Result<f32, AudioError>Expand description
Loudness Range (LU) of a short-term loudness series.
short_term_lufs are LUFS values; scratch must be at least as long
(holds the gated subset for percentile ranking; contents on return are
unspecified). Returns:
Err(OutputBufferTooSmall)ifscratchis shorter than the input,Ok(0.0)if fewer than two values survive gating (range undefined/degenerate),- otherwise
P95 − P10of the gated distribution.