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

type Output

The sample format yielded by this source.

Required Methods

fn next<'a>(&'a mut self) -> Option<&'a mut [Self::Output]>

Get the next set of samples.

Provided Methods

fn adapt(self) -> MonoAdapter<Self::Output, Self>

Adapts a MonoSource into a (more general) Source.

Implementors