comparison decoders/mpglib/mpglib_sdlsound.h @ 292:a9e211c3faa4

Cleanups and audio format determination.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 17 Mar 2002 21:16:33 +0000
parents 9b6e82f7c853
children 5b00e43ec23c
comparison
equal deleted inserted replaced
291:a48e886d456f 292:a9e211c3faa4
1 1
2 struct buf { 2 struct buf {
3 unsigned char *pnt; 3 unsigned char *pnt;
4 long size; 4 long size;
5 long pos; 5 long pos;
6 struct buf *next; 6 struct buf *next;
7 struct buf *prev; 7 struct buf *prev;
8 }; 8 };
9 9
10 struct framebuf { 10 struct framebuf {
11 struct buf *buf; 11 struct buf *buf;
12 long pos; 12 long pos;
16 16
17 struct mpstr { 17 struct mpstr {
18 struct buf *head,*tail; 18 struct buf *head,*tail;
19 int bsize; 19 int bsize;
20 int framesize; 20 int framesize;
21 int fsizeold; 21 int fsizeold;
22 struct frame fr; 22 struct frame fr;
23 unsigned char bsspace[2][MAXFRAMESIZE+512]; /* MAXFRAMESIZE */ 23 unsigned char bsspace[2][MAXFRAMESIZE+512]; /* MAXFRAMESIZE */
24 real hybrid_block[2][2][SBLIMIT*SSLIMIT]; 24 real hybrid_block[2][2][SBLIMIT*SSLIMIT];
25 int hybrid_blc[2]; 25 int hybrid_blc[2];
26 unsigned long header; 26 unsigned long header;
27 int bsnum; 27 int bsnum;
28 real synth_buffs[2][2][0x110]; 28 real synth_buffs[2][2][0x110];
29 int synth_bo; 29 int synth_bo;
30 }; 30 };
31 31
32 #ifndef BOOL 32 #ifndef BOOL
33 #define BOOL int 33 #define BOOL int
34 #endif 34 #endif
42 extern "C" { 42 extern "C" {
43 #endif 43 #endif
44 44
45 BOOL InitMP3(struct mpstr *mp); 45 BOOL InitMP3(struct mpstr *mp);
46 int decodeMP3(struct mpstr *mp,char *inmemory,int inmemsize, 46 int decodeMP3(struct mpstr *mp,char *inmemory,int inmemsize,
47 char *outmemory,int outmemsize,int *done); 47 char *outmemory,int outmemsize,int *done);
48 void ExitMP3(struct mpstr *mp); 48 void ExitMP3(struct mpstr *mp);
49 49
50 #ifdef __cplusplus 50 #ifdef __cplusplus
51 } 51 }
52 #endif 52 #endif