Realm

oa::audio::pad_to

Right-pad input with silence to exactly samples per channel. Errors Returns an error when samples is smaller than the input length; use crop_to to shorten instead. Allocation or dispatch failures propagate.

FnRust public API

Function Documentation

pub fn pad_to( input: &Audio, samples: usize ) -> Result<Audio>
Right-pad input with silence to exactly samples per channel. Errors Returns an error when samples is smaller than the input length; use crop_to to shorten instead. Allocation or dispatch failures propagate.