pub trait OwnedAudioBuffer: AudioBuffer {
    fn new() -> Self;
    fn resize(
        &mut self,
        num_channels: usize,
        num_samples: usize,
        sample: Self::SampleType
    ); }
Expand description

A trait for buffer types that own the data they hold & can be constructed / resized.

Required Methods

Create an empty buffer of this type

Resize the buffer to fit num_channels and num_samples

Implementors