Trait rotary::Buf [−][src]
A trait describing an immutable audio buffer.
Required methods
fn channels(&self) -> usize
[src]
The number of channels in the buffer.
fn is_masked(&self, channel: usize) -> bool
[src]
Test if the given channel is masked.
fn channel(&self, channel: usize) -> BufChannel<'_, T>
[src]
Return a handler to the buffer associated with the channel.
Note that we don’t access the buffer for the underlying channel directly
as a linear buffer like &[T]
, because the underlying representation
might be different.
We must instead make use of the various utility functions found on BufChannel to copy data out of the channel.
Panics
Panics if the specified channel is out of bound as reported by Buf::channels.
Implementations on Foreign Types
impl<T> Buf<T> for Vec<Vec<T>>
[src]
fn channels(&self) -> usize
[src]
fn is_masked(&self, channel: usize) -> bool
[src]
fn channel(&self, channel: usize) -> BufChannel<'_, T>
[src]
impl<T> Buf<T> for [Vec<T>]
[src]
fn channels(&self) -> usize
[src]
fn is_masked(&self, channel: usize) -> bool
[src]
fn channel(&self, channel: usize) -> BufChannel<'_, T>
[src]
Implementors
impl<T> Buf<T> for Dynamic<T> where
T: Sample,
[src]
T: Sample,
fn channels(&self) -> usize
[src]
fn is_masked(&self, _: usize) -> bool
[src]
fn channel(&self, channel: usize) -> BufChannel<'_, T>
[src]
impl<T> Buf<T> for Interleaved<T> where
T: Sample,
[src]
T: Sample,
fn channels(&self) -> usize
[src]
fn is_masked(&self, _: usize) -> bool
[src]
fn channel(&self, channel: usize) -> BufChannel<'_, T>
[src]
impl<T> Buf<T> for Sequential<T> where
T: Sample,
[src]
T: Sample,
fn channels(&self) -> usize
[src]
fn is_masked(&self, _: usize) -> bool
[src]
fn channel(&self, channel: usize) -> BufChannel<'_, T>
[src]
impl<T, M> Buf<T> for MaskedDynamic<T, M> where
T: Sample,
M: Mask,
[src]
T: Sample,
M: Mask,