mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 17:00:44 +00:00
22 lines
473 B
Rust
22 lines
473 B
Rust
use std::io;
|
|
use super::fourcc::FourCC;
|
|
|
|
#[derive(Debug)]
|
|
pub enum Error {
|
|
IOError(io::Error),
|
|
HeaderNotRecognized,
|
|
MissingRequiredDS64,
|
|
ChunkMissing { signature : FourCC },
|
|
FmtChunkAfterData,
|
|
NotMinimalWaveFile,
|
|
DataChunkNotAligned,
|
|
InsufficientDS64Reservation {expected: u64, actual: u64},
|
|
DataChunkNotPreparedForAppend
|
|
}
|
|
|
|
|
|
impl From<io::Error> for Error {
|
|
fn from(error: io::Error) -> Error {
|
|
Error::IOError(error)
|
|
}
|
|
} |