mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2026-01-02 09:50:44 +00:00
Documentation
This commit is contained in:
@@ -1,16 +1,30 @@
|
|||||||
use std::io;
|
use std::io;
|
||||||
use super::fourcc::FourCC;
|
use super::fourcc::FourCC;
|
||||||
|
|
||||||
|
/// Errors returned by methods in this crate.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
/// An `io::Error` occurred
|
||||||
IOError(io::Error),
|
IOError(io::Error),
|
||||||
|
/// The file does not begin with a recognized WAVE header
|
||||||
HeaderNotRecognized,
|
HeaderNotRecognized,
|
||||||
|
/// A wave file with a 64-bit header does not contain
|
||||||
|
/// the required `ds64` metadata element
|
||||||
MissingRequiredDS64,
|
MissingRequiredDS64,
|
||||||
|
/// A data chunk required to complete the operation
|
||||||
|
/// is not present in the file
|
||||||
ChunkMissing { signature : FourCC },
|
ChunkMissing { signature : FourCC },
|
||||||
|
/// The file is formatted improperly
|
||||||
FmtChunkAfterData,
|
FmtChunkAfterData,
|
||||||
|
/// The file did not validate as a minimal WAV file
|
||||||
NotMinimalWaveFile,
|
NotMinimalWaveFile,
|
||||||
|
/// The `data` chunk is not aligned to the desired page
|
||||||
|
/// boundary
|
||||||
DataChunkNotAligned,
|
DataChunkNotAligned,
|
||||||
|
/// The file cannot be converted into an RF64 file due
|
||||||
|
/// to its internal structure
|
||||||
InsufficientDS64Reservation {expected: u64, actual: u64},
|
InsufficientDS64Reservation {expected: u64, actual: u64},
|
||||||
|
/// The file is not optimized for writing new data
|
||||||
DataChunkNotPreparedForAppend
|
DataChunkNotPreparedForAppend
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user