conformal_component::audio

Trait BufferMut

Source
pub trait BufferMut: Buffer {
    // Required method
    fn channel_mut(&mut self, channel: usize) -> &mut [f32];
}
Expand description

A mutable (potentially multi-channel) buffer of audio samples.

This is a mutable version of Buffer.

Required Methods§

Source

fn channel_mut(&mut self, channel: usize) -> &mut [f32]

Get a channel from the buffer as a mutable slice

Implementors§