Skip to main content

width

Function width 

Source
pub fn width(
    in_stereo: &[f32],
    out_stereo: &mut [f32],
    width: f32,
) -> Result<usize, AudioError>
Expand description

Apply mid/side width to interleaved stereo in_stereo → out_stereo.

Processes n = min(in_stereo.len(), out_stereo.len()) / 2 frames and returns the frame count. Errors with AudioError::InvalidParameter if width is not finite.