Skip to main content

stack

Function stack 

Source
pub fn stack(inputs: &[Audio]) -> Result<Audio>
Expand description

Stack clips as consecutive channel rows, producing one batched [total_channels, samples] audio.

All inputs must share sample rate, sample count, and channel layout; use pad_to or crop_to first for variable-length sources. Item i’s channels occupy the contiguous rows following items 0..i, which keeps per-item channel grouping recoverable from the layouts.

§Errors

Returns an error for an empty input list, mismatched metadata, or a failing concatenate dispatch.