Function rubato::make_buffer
source · pub fn make_buffer<T: Sample>(
channels: usize,
frames: usize,
filled: bool
) -> Vec<Vec<T>>
Expand description
Convenience method for allocating a buffer to hold a given number of channels and frames.
The filled
argument determines if the vectors should be pre-filled with zeros or not.
When false, the vectors are only allocated but returned empty.