#![forbid(unsafe_code)]
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
#[error("not a RIFF/WAVE container")]
NotRiffWave,
#[error("missing fmt chunk")]
MissingFmtChunk,
#[error("truncated fmt chunk (need at least 16 bytes)")]
TruncatedFmtChunk,
#[error("unsupported wFormatTag {0} (only PCM=1 / IEEE float=3 supported)")]
UnsupportedFormatTag(u16),
}