Enum audrey::read::Reader [] [src]

pub enum Reader<R> where
    R: Read + Seek
{ Flac(FlacReader<R>), OggVorbis(OggStreamReader<R>), Wav(WavReader<R>), CafAlac(AlacReader<R>), }

Returned by the read function, enumerates the various supported readers.

Variants

Methods

impl<R> Reader<R> where
    R: Read + Seek
[src]

[src]

Attempts to read the format of the audio read by the given reader and returns the associated Reader variant.

The format is determined by attempting to construct each specific format reader until one is successful.

[src]

The format from which the audio will be read.

[src]

A basic description of the audio being read.

[src]

Produce an iterator that reads samples from the underlying reader, converts them to the sample type S if not already in that format and yields them.

When reading from multiple channels, samples are interleaved.

[src]

Produce an iterator that yields read frames from the underlying Reader.

This method currently expects that the frame type F has the same number of channels as stored in the underlying audio format.

TODO: Should consider changing this behaviour to check the audio file's actual number of channels and automatically convert to F's number of channels while reading.