Skip to main content

interleave_stereo

Function interleave_stereo 

Source
pub fn interleave_stereo(in_l: &[f32], in_r: &[f32], stereo: &mut [f32])
Expand description

Interleave two mono buffers into a stereo interleaved buffer (SIMD).

Produces [L0,R0, L1,R1, L2,R2, ...]. Processes 4 stereo pairs (8 samples) per chunk.

§Panics

Panics if stereo is shorter than 2 * in_l.len().