Trait rotary::BufMut [−][src]
A trait describing a mutable audio buffer.
Required methods
fn channel_mut(&mut self, channel: usize) -> BufChannelMut<'_, T>
[src]
Return a mutable handler to the buffer associated with the channel.
Panics
Panics if the specified channel is out of bound as reported by Buf::channels.
fn resize(&mut self, frames: usize)
[src]
Resize the number of frames.
fn resize_topology(&mut self, channels: usize, frames: usize)
[src]
Resize the buffer to match the given topology.
fn set_masked(&mut self, channel: usize, masked: bool)
[src]
Set if the given channel is masked or not.
Implementations on Foreign Types
impl<T> BufMut<T> for Vec<Vec<T>> where
T: Sample,
[src]
T: Sample,
fn channel_mut(&mut self, channel: usize) -> BufChannelMut<'_, T>
[src]
fn resize(&mut self, frames: usize)
[src]
fn resize_topology(&mut self, channels: usize, frames: usize)
[src]
fn set_masked(&mut self, _: usize, _: bool)
[src]
Implementors
impl<T> BufMut<T> for Dynamic<T> where
T: Sample,
[src]
T: Sample,
fn channel_mut(&mut self, channel: usize) -> BufChannelMut<'_, T>
[src]
fn resize(&mut self, frames: usize)
[src]
fn resize_topology(&mut self, channels: usize, frames: usize)
[src]
fn set_masked(&mut self, _: usize, _: bool)
[src]
impl<T> BufMut<T> for Interleaved<T> where
T: Sample,
[src]
T: Sample,
fn channel_mut(&mut self, channel: usize) -> BufChannelMut<'_, T>
[src]
fn resize(&mut self, frames: usize)
[src]
fn resize_topology(&mut self, channels: usize, frames: usize)
[src]
fn set_masked(&mut self, _: usize, _: bool)
[src]
impl<T> BufMut<T> for Sequential<T> where
T: Sample,
[src]
T: Sample,
fn channel_mut(&mut self, channel: usize) -> BufChannelMut<'_, T>
[src]
fn resize(&mut self, frames: usize)
[src]
fn resize_topology(&mut self, channels: usize, frames: usize)
[src]
fn set_masked(&mut self, _: usize, _: bool)
[src]
impl<T, M> BufMut<T> for MaskedDynamic<T, M> where
T: Sample,
M: Mask,
[src]
T: Sample,
M: Mask,