2009-02-09 21:15:56 +00:00
|
|
|
//============================================
|
|
|
|
//=== Audio XA decoding
|
|
|
|
//=== Kazzuya
|
|
|
|
//============================================
|
|
|
|
|
|
|
|
#ifndef DECODEXA_H
|
|
|
|
#define DECODEXA_H
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
long y0, y1;
|
|
|
|
} ADPCM_Decode_t;
|
|
|
|
|
|
|
|
typedef struct
|
2010-04-25 00:31:27 +00:00
|
|
|
{
|
2009-02-09 21:15:56 +00:00
|
|
|
int freq;
|
|
|
|
int nbits;
|
|
|
|
int stereo;
|
|
|
|
int nsamples;
|
|
|
|
ADPCM_Decode_t left, right;
|
|
|
|
short pcm[16384];
|
|
|
|
} xa_decode_t;
|
|
|
|
|
|
|
|
long xa_decode_sector( xa_decode_t *xdp,
|
|
|
|
unsigned char *sectorp,
|
|
|
|
int is_first_sector );
|
|
|
|
|
|
|
|
#endif
|