fn next_cut(pcm: &[f32], start: usize) -> Option<usize>Expand description
Where the next window past start ends, once more than
WINDOW_TARGET has accrued past it: the quietest ENERGY_FRAME
block between WINDOW_MIN and WINDOW_TARGET past start.
None while the region is still short.
This one function is the whole windowing rule, and both callers
share it: whole-buffer windowing loops it over the finished take,
and the live segmenter calls it as the recording grows. The cut at
start depends only on samples up to start + WINDOW_TARGET, so
deciding it as soon as they exist lands exactly where deciding it
after the take would.