pub fn crossfade(
prev_tail: &[i16],
next_head: &[i16],
overlap_samples: usize,
) -> Vec<i16>Expand description
Crossfade between two audio chunks using linear interpolation (overlap-add).
prev_tail is the end of the previous chunk, next_head is the start of
the next chunk. overlap_samples controls how many samples are blended.
If overlap_samples exceeds the length of either slice, it is clamped to
the shorter of the two.
Returns a Vec containing the blended overlap region.