[−][src]Trait fon::Stream
Audio stream - a type that generates audio samples.
Required methods
pub fn sample_rate(&self) -> Option<f64>
[src]
Get the (source) sample rate of the stream.
pub fn len(&self) -> Option<usize>
[src]
Returns the length of the stream exactly. None
represents an infinite
iterator.
Provided methods
pub fn is_empty(&self) -> bool
[src]
Check if the stream is empty (will not produce any frames).
pub fn set_sample_rate<R: Into<f64>>(&mut self, sr: R)
[src]
Set the source sample rate of the stream. Will usually panic (default behavior), unless the stream is configurable.
pub fn take(self, samples: usize) -> TakeStream<F, Self>
[src]
Take at most samples
samples as a stream.
pub fn blend<G: Frame, M: Stream<G>, O: Blend>(
self,
other: M,
op: O
) -> BlendStream<F, G, Self, M, O>
[src]
self,
other: M,
op: O
) -> BlendStream<F, G, Self, M, O>