Struct alac::Decoder [] [src]

pub struct Decoder { /* fields omitted */ }

An ALAC packet decoder.

Methods

impl Decoder
[src]

[src]

Creates a Decoder for a stream described by the StreamInfo.

[src]

Returns the StreamInfo used to create this decoder.

[src]

Decodes an ALAC packet into out.

Channels are interleaved, e.g. for a stereo packet out would contains samples in the order [left, right, left, right, ..].

Panics if out is shorter than StreamInfo::max_samples_per_packet.