Enum simplemad_sys::MadError
[−]
[src]
pub enum MadError { None, BufLen, BufPtr, NoMem, LostSync, BadLayer, BadBitRate, BadSampleRate, BadEmphasis, BadCRC, BadBitAlloc, BadScaleFactor, BadMode, BadFrameLen, BadBigValues, BadBlockType, BadScFSI, BadDataPtr, BadPart3Len, BadHuffTable, BadHuffData, BadStereo, }
Errors generated by libmad
Variants
None | no error |
BufLen | input buffer too small (or eof) |
BufPtr | invalid (null) buffer pointer |
NoMem | not enough memory |
LostSync | lost synchronization |
BadLayer | reserved header layer value |
BadBitRate | forbidden bitrate value |
BadSampleRate | reserved sample frequency value |
BadEmphasis | reserved emphasis value |
BadCRC | crc check failed |
BadBitAlloc | forbidden bit allocation value |
BadScaleFactor | bad scalefactor index |
BadMode | bad bitrate/mode combination |
BadFrameLen | bad frame length |
BadBigValues | bad big_values count |
BadBlockType | reserved block_type |
BadScFSI | bad scalefactor selection info |
BadDataPtr | bad main_data_begin pointer |
BadPart3Len | bad audio data length |
BadHuffTable | bad huffman table select |
BadHuffData | huffman data overrun |
BadStereo | incompatible block_type for joint stereo |