audrey::read

Type Alias BufFileReader

Source
pub type BufFileReader = Reader<BufReader<File>>;
Expand description

An alias for the buffered, file Reader type returned from the open function.

Aliased Type§

enum BufFileReader {
    Flac(FlacReader<BufReader<File>>),
    OggVorbis(OggStreamReader<BufReader<File>>),
    Wav(WavReader<BufReader<File>>),
    CafAlac(AlacReader<BufReader<File>>),
}

Variants§

Implementations§

Source§

impl BufFileReader

Source

pub fn open<P>(file_path: P) -> Result<Self, ReadError>
where P: AsRef<Path>,

Attempts to open an audio Reader from the file at the specified Path.

This function is a convenience wrapper around the Reader::new function.

This function pays no attention to the file_path’s extension and instead attempts to read a supported Format via the file header.