Go to the source code of this file.
Data Structures |
struct | _MP3FrameInfo |
Defines |
#define | MAINBUF_SIZE 1940 |
#define | MAX_NGRAN 2 |
#define | MAX_NCHAN 2 |
#define | MAX_NSAMP 576 |
Typedefs |
typedef void * | HMP3Decoder |
typedef struct _MP3FrameInfo | MP3FrameInfo |
Enumerations |
enum | MPEGVersion { MPEG1 = 0,
MPEG2 = 1,
MPEG25 = 2
} |
enum | {
ERR_MP3_NONE = 0,
ERR_MP3_INDATA_UNDERFLOW = -1,
ERR_MP3_MAINDATA_UNDERFLOW = -2,
ERR_MP3_FREE_BITRATE_SYNC = -3,
ERR_MP3_OUT_OF_MEMORY = -4,
ERR_MP3_NULL_POINTER = -5,
ERR_MP3_INVALID_FRAMEHEADER = -6,
ERR_MP3_INVALID_SIDEINFO = -7,
ERR_MP3_INVALID_SCALEFACT = -8,
ERR_MP3_INVALID_HUFFCODES = -9,
ERR_UNKNOWN = -9999
} |
Functions |
HMP3Decoder | MP3InitDecoder (void) |
void | MP3FreeDecoder (HMP3Decoder hMP3Decoder) |
int | MP3Decode (HMP3Decoder hMP3Decoder, unsigned char **inbuf, int *bytesLeft, short *outbuf, int useSize) |
void | MP3GetLastFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo) |
int | MP3GetNextFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo, unsigned char *buf) |
int | MP3FindSyncWord (unsigned char *buf, int nBytes) |
Define Documentation
#define MAINBUF_SIZE 1940 |
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
-
Definition at line 89 of file mp3dec.h.
- Enumerator:
ERR_MP3_NONE |
|
ERR_MP3_INDATA_UNDERFLOW |
|
ERR_MP3_MAINDATA_UNDERFLOW |
|
ERR_MP3_FREE_BITRATE_SYNC |
|
ERR_MP3_OUT_OF_MEMORY |
|
ERR_MP3_NULL_POINTER |
|
ERR_MP3_INVALID_FRAMEHEADER |
|
ERR_MP3_INVALID_SIDEINFO |
|
ERR_MP3_INVALID_SCALEFACT |
|
ERR_MP3_INVALID_HUFFCODES |
|
ERR_UNKNOWN |
|
Definition at line 97 of file mp3dec.h.
Function Documentation
int MP3Decode |
( |
HMP3Decoder |
hMP3Decoder, |
|
|
unsigned char ** |
inbuf, |
|
|
int * |
bytesLeft, |
|
|
short * |
outbuf, |
|
|
int |
useSize |
|
) |
| |
int MP3FindSyncWord |
( |
unsigned char * |
buf, |
|
|
int |
nBytes |
|
) |
| |