pub enum Error {
Decode(AnalysisError),
InvalidFormat,
InvalidBuffer,
IncompleteFrame,
NonFiniteSample,
ChannelLayout(String),
External(String),
InvalidPosition,
SeekAfterStart,
SeekCancelled,
FlacMd5Mismatch,
UnsupportedIntegerSource(&'static str),
}Expand description
A file or buffer that cannot satisfy the playback PCM contract.
Variants§
Decode(AnalysisError)
The underlying file could not be opened or decoded.
InvalidFormat
The file header describes an unusable PCM format.
InvalidBuffer
The caller’s buffer is empty or cannot hold complete frames.
IncompleteFrame
A decoded packet does not contain complete frames.
NonFiniteSample
A decoded packet contains a non-finite sample.
ChannelLayout(String)
A multichannel stream’s speaker positions could not be established.
External(String)
An external decoder could not be started or did not finish cleanly.
InvalidPosition
The requested position exceeds the representable source-frame count.
SeekAfterStart
Seeking requires a newly opened stream, before any PCM is read.
SeekCancelled
The caller stopped a progressive seek before reaching its target.
FlacMd5Mismatch
The completely decoded FLAC audio disagrees with its STREAMINFO MD5.
UnsupportedIntegerSource(&'static str)
The source lies outside the initial exact integer PCM profile.