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

Trait Implementations

impl Default for MadError

fn default() -> MadError

Derived Implementations

impl PartialEq for MadError

fn eq(&self, __arg_0: &MadError) -> bool

fn ne(&self, __arg_0: &MadError) -> bool

impl Copy for MadError

impl Clone for MadError

fn clone(&self) -> MadError

fn clone_from(&mut self, source: &Self)

impl Debug for MadError

fn fmt(&self, __arg_0: &mut Formatter) -> Result