Trait rotary::BufMut[][src]

pub trait BufMut<T>: Buf<T> {
    fn channel_mut(&mut self, channel: usize) -> BufChannelMut<'_, T>;
fn resize(&mut self, frames: usize);
fn resize_topology(&mut self, channels: usize, frames: usize);
fn set_masked(&mut self, channel: usize, masked: bool); }

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.

Loading content...

Implementations on Foreign Types

impl<T> BufMut<T> for Vec<Vec<T>> where
    T: Sample
[src]

Loading content...

Implementors

impl<T> BufMut<T> for Dynamic<T> where
    T: Sample
[src]

impl<T> BufMut<T> for Interleaved<T> where
    T: Sample
[src]

impl<T> BufMut<T> for Sequential<T> where
    T: Sample
[src]

impl<T, M> BufMut<T> for MaskedDynamic<T, M> where
    T: Sample,
    M: Mask
[src]

Loading content...