Struct vorbis::Samples
[−]
[src]
pub struct Samples<'a> { /* fields omitted */ }
Contains decoded sample data for all channels returned by the Decoder::decode() method.
Methods
impl<'a> Samples<'a>
[src]
fn len(&self) -> usize
Returns the number of samples each channel has.
fn is_empty(&self) -> bool
Returns true
if the len() == 0
.
fn interleave(&self) -> InterleavedSamplesIter<'a>
Returns iterator over the samples in all channels interleaved.
fn channel_count(&self) -> usize
Returns the number of channels. This is the same as Header::channel_count()
.
fn channels(&self) -> ChannelIter<'a>
Returns iterator over the samples for each channel in order.