raze-gles/polymer/build/include/tmp/buildsound.h
Plagman 09f0c239b6 Importing source for great justice
git-svn-id: https://svn.eduke32.com/eduke32@5 1a8010ca-5511-0410-912e-c29ae57300e0
2006-04-13 20:47:06 +00:00

15 lines
475 B
C

typedef struct {
unsigned long samplerate; // sample rate of the sound
unsigned short channels; // number of channels
unsigned short bitspersample; // bits per sample
unsigned short format; // 0 = pcm
unsigned long soundlength; // bytes required for sound storage
} 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);