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§
Flac(FlacReader<BufReader<File>>)
OggVorbis(OggStreamReader<BufReader<File>>)
Wav(WavReader<BufReader<File>>)
CafAlac(AlacReader<BufReader<File>>)
Implementations§
Source§impl BufFileReader
impl BufFileReader
Sourcepub fn open<P>(file_path: P) -> Result<Self, ReadError>
pub fn open<P>(file_path: P) -> Result<Self, ReadError>
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.