stream_to_matrix

Function stream_to_matrix 

Source
pub fn stream_to_matrix<I, O>(
    stream: impl Iterator<Item = I>,
    channels: usize,
    norm: O,
) -> Matrix<O>
where I: Copy + Into<O>, O: Copy + Div<Output = O>,
Expand description

separate a stream of alternating channels into a matrix of channel streams: L R L R L R L R L R becomes L L L L L R R R R R