Trait rotary::buf::BufMut[][src]

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

A trait describing a mutable audio buffer.

Required methods

fn channel_mut(&mut self, channel: usize) -> ChannelMut<'_, 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 in the buffer.

fn resize_topology(&mut self, channels: usize, frames: usize)[src]

Resize the buffer to match the given topology.

Loading content...

Implementations on Foreign Types

impl<B: ?Sized, T> BufMut<T> for &mut B where
    B: BufMut<T>,
    T: Sample
[src]

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

Loading content...

Implementors

impl<B, T> BufMut<T> for Chunk<B> where
    B: BufMut<T>,
    T: Sample
[src]

impl<B, T> BufMut<T> for Limit<B> where
    B: BufMut<T>,
    T: Sample
[src]

impl<B, T> BufMut<T> for Skip<B> where
    B: BufMut<T>,
    T: Sample
[src]

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

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

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

impl<T, S> BufMut<S> for rotary::wrap::Interleaved<T> where
    T: AsRef<[S]> + AsMut<[S]>,
    S: Sample
[src]

impl<T, S> BufMut<S> for rotary::wrap::Sequential<T> where
    T: AsRef<[S]> + AsMut<[S]>,
    S: Sample
[src]

Loading content...