Function qoaudio::decode_all

source ·
pub fn decode_all<R: Read>(reader: R) -> Result<DecodedQoa, DecodeError>
Expand description

Decode all samples of a QOA file read from reader.

If not all frames in the file have the same number of channels and the same sample rate DecodeError::IncompatibleFrame is returned. This is a convenience function that uses QoaDecoder internally. QoaDecoder is able to decode samples even if frames have different number of channels or sample rate.