comparison decoders/mpglib/mpglib_sdlsound.h @ 261:9b6e82f7c853

Initial add.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 21 Feb 2002 19:46:09 +0000
parents
children a9e211c3faa4
comparison
equal deleted inserted replaced
260:44a4730a1e6f 261:9b6e82f7c853
1
2 struct buf {
3 unsigned char *pnt;
4 long size;
5 long pos;
6 struct buf *next;
7 struct buf *prev;
8 };
9
10 struct framebuf {
11 struct buf *buf;
12 long pos;
13 struct frame *next;
14 struct frame *prev;
15 };
16
17 struct mpstr {
18 struct buf *head,*tail;
19 int bsize;
20 int framesize;
21 int fsizeold;
22 struct frame fr;
23 unsigned char bsspace[2][MAXFRAMESIZE+512]; /* MAXFRAMESIZE */
24 real hybrid_block[2][2][SBLIMIT*SSLIMIT];
25 int hybrid_blc[2];
26 unsigned long header;
27 int bsnum;
28 real synth_buffs[2][2][0x110];
29 int synth_bo;
30 };
31
32 #ifndef BOOL
33 #define BOOL int
34 #endif
35
36 #define MP3_ERR -1
37 #define MP3_OK 0
38 #define MP3_NEED_MORE 1
39
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 BOOL InitMP3(struct mpstr *mp);
46 int decodeMP3(struct mpstr *mp,char *inmemory,int inmemsize,
47 char *outmemory,int outmemsize,int *done);
48 void ExitMP3(struct mpstr *mp);
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54