Struct alac::Reader
[−]
[src]
pub struct Reader<R: Read + Seek> { /* fields omitted */ }
An ALAC reader and decoder supporting mp4
and caf
files (if the respective Cargo features
are enabled).
Methods
impl<R: Read + Seek> Reader<R>
[src]
fn new(reader: R) -> Result<Reader<R>, ReadError>
[src]
Attempts to create a Reader
from a seekable byte stream.
fn format(&self) -> Format
[src]
Returns the format of this ALAC file.
fn stream_info(&self) -> &StreamInfo
[src]
Returns a StreamInfo
describing the ALAC stream in this file.
fn into_samples<S: Sample>(self) -> Samples<R, S>
[src]
Returns an iterator over the samples in the ALAC stream.
Channels are interleaved, e.g. for a stereo stream they would be yielded in the order
[left, right, left, right, ..]
.
fn into_packets<S: Sample>(self) -> Packets<R, S>
[src]
Returns an iterator-like type that decodes packets into a user-provided buffer.