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
Required Methods
fn next<'a>(&'a mut self) -> SourceResult<'a, Self::Output>
Emit the next buffer.
Implementors
impl<R: Reader> Source for VorbisStream<R>impl<'z, F: Sample> Source for Box<Source<Output=F> + 'z>impl<F, T> Source for MonoAdapter<F, T> where F: Sample, T: MonoSource<Output=F>impl<F: Sample, S: Source<Output=F>> Source for CopyChannel<F, S>impl<F: Sample, S: Source<Output=F>, P: Float + Sample> Source for Amplify<F, S, P>