Enum audiostream::SourceResult [] [src]

pub enum SourceResult<'a, T: 'a> {
    Buffer(&'a mut [&'a mut [T]]),
    SampleRate(u32),
    EndOfStream,
    StreamError(String),
}

Output from Source pull.

Variants

Buffer

Channel-major buffer of samples.

All channels are guaranteed to have the same number of samples, and there is always at least one channel.

SampleRate

Following samples have the specified rate (in Hz).

EndOfStream

Reached stream end.

StreamError

There was an error in the stream.

Trait Implementations

Derived Implementations

impl<'a, T: PartialEq + 'a> PartialEq for SourceResult<'a, T> where T: PartialEq

fn eq(&self, __arg_0: &SourceResult<'a, T>) -> bool

fn ne(&self, __arg_0: &SourceResult<'a, T>) -> bool

impl<'a, T: Debug + 'a> Debug for SourceResult<'a, T> where T: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result