Trait audiostream::MonoSource
[-]
[+]
[src]
pub trait MonoSource: Sized { type Output; fn next<'a>(&'a mut self) -> Option<&'a mut [Self::Output]>; fn adapt(self) -> MonoAdapter<Self::Output, Self> { ... } }
A Source
that only generates one channel at an indeterminate sample rate.
To generalize to a full Source
, use the adapt
method.
Associated Types
Required Methods
Provided Methods
fn adapt(self) -> MonoAdapter<Self::Output, Self>
Adapts a MonoSource
into a (more general) Source
.
Implementors
impl<F: Sample> MonoSource for Null<F>
impl<F: Sample, P: Sample + Float> MonoSource for Tone<F, P>
impl<R: Rng> MonoSource for WhiteNoise<f64, R>
impl<F> MonoSource for UninitializedSource<F>