Struct minimp3::Decoder [−][src]
pub struct Decoder<R> where
R: Read, { /* fields omitted */ }
A MP3 decoder which consumes a reader and produces Frame
s.
Methods
impl<R> Decoder<R> where
R: Read,
[src]
impl<R> Decoder<R> where
R: Read,
pub fn new(reader: R) -> Decoder<R>
[src]
pub fn new(reader: R) -> Decoder<R>
Creates a new decoder, consuming the reader
.
pub fn next_frame(&mut self) -> Result<Frame, Error>
[src]
pub fn next_frame(&mut self) -> Result<Frame, Error>
Reads a new frame from the internal reader. Returns a Frame
if one was found,
or, otherwise, an Err
explaining why not.