use core::result;
#[derive(Debug)]
pub enum AifcError {
UnrecognizedFormat,
Unsupported,
InvalidCommChunk,
InvalidSampleSize,
CommChunkNotFoundBeforeSsndChunk,
InvalidNumberOfChannels,
InvalidWriteState,
SizeTooLarge,
InvalidParameter,
InvalidSampleFormat,
TimestampOutOfBounds,
ReadError,
SeekError,
StdIoError(std::io::Error),
}
impl From<std::io::Error> for AifcError {
fn from(e: std::io::Error) -> Self {
AifcError::StdIoError(e)
}
}
pub type AifcResult<T> = result::Result<T, AifcError>;