Trait audiostream::Source [] [src]

pub trait Source {
    type Output: Sample;
    fn next<'a>(&'a mut self) -> SourceResult<'a, Self::Output>;
}

A source of samples with defined sample rate.

Generates buffers of samples of type T and passes them to a consumer.

Associated Types

type Output: Sample

The sample format emitted by this source.

Required Methods

fn next<'a>(&'a mut self) -> SourceResult<'a, Self::Output>

Emit the next buffer.

Implementors