| 1 |
|
| 2 |
|
| 3 |
#define NOANALYSIS |
| 4 |
|
| 5 |
#ifndef NOANALYSIS |
| 6 |
extern plotting_data *mpg123_pinfo; |
| 7 |
#endif |
| 8 |
|
| 9 |
struct buf { |
| 10 |
unsigned char *pnt; |
| 11 |
long size; |
| 12 |
long pos; |
| 13 |
struct buf *next; |
| 14 |
struct buf *prev; |
| 15 |
}; |
| 16 |
|
| 17 |
struct framebuf { |
| 18 |
struct buf *buf; |
| 19 |
long pos; |
| 20 |
struct frame *next; |
| 21 |
struct frame *prev; |
| 22 |
}; |
| 23 |
|
| 24 |
typedef struct mpstr_tag { |
| 25 |
struct buf *head,*tail; |
| 26 |
int vbr_header; |
| 27 |
int num_frames; |
| 28 |
int enc_delay; |
| 29 |
int enc_padding; |
| 30 |
int header_parsed; |
| 31 |
int side_parsed; |
| 32 |
int data_parsed; |
| 33 |
int free_format; |
| 34 |
int old_free_format; |
| 35 |
int bsize; |
| 36 |
int framesize; |
| 37 |
int ssize; |
| 38 |
int dsize; |
| 39 |
int fsizeold; |
| 40 |
int fsizeold_nopadding; |
| 41 |
struct frame fr; |
| 42 |
unsigned char bsspace[2][MAXFRAMESIZE+512]; |
| 43 |
real hybrid_block[2][2][SBLIMIT*SSLIMIT]; |
| 44 |
int hybrid_blc[2]; |
| 45 |
unsigned long header; |
| 46 |
int bsnum; |
| 47 |
real synth_buffs[2][2][0x110]; |
| 48 |
int synth_bo; |
| 49 |
int sync_bitstream; |
| 50 |
|
| 51 |
} MPSTR, *PMPSTR; |
| 52 |
|
| 53 |
|
| 54 |
#if ( defined(_MSC_VER) || defined(__BORLANDC__) ) |
| 55 |
typedef int BOOL; |
| 56 |
#else |
| 57 |
#define BOOL int |
| 58 |
#endif |
| 59 |
|
| 60 |
#define MP3_ERR -1 |
| 61 |
#define MP3_OK 0 |
| 62 |
#define MP3_NEED_MORE 1 |
| 63 |
|
| 64 |
|
| 65 |
|