2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
typedef struct {
|
2007-12-12 17:42:14 +00:00
|
|
|
unsigned int samplerate; // sample rate of the sound
|
2006-04-13 20:47:06 +00:00
|
|
|
unsigned short channels; // number of channels
|
|
|
|
unsigned short bitspersample; // bits per sample
|
|
|
|
unsigned short format; // 0 = pcm
|
2007-12-12 17:42:14 +00:00
|
|
|
unsigned int soundlength; // bytes required for sound storage
|
2006-04-13 20:47:06 +00:00
|
|
|
} SoundInfo;
|
|
|
|
|
|
|
|
|
|
|
|
int ReadVOCInfo(int fh, SoundInfo *snd);
|
|
|
|
int ReadVOCData(int fh, char *data, int bufferlen);
|
|
|
|
|
|
|
|
int ReadWAVInfo(int fh, SoundInfo *snd);
|
|
|
|
int ReadWAVData(int fh, char *data, int bufferlen);
|