home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
500-599
/
ff546.lzh
/
DSound
/
DSound.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-19
|
657b
|
26 lines
struct IOAudio *GetAudioChannel(ULONG bufferSize);
void FreeAudioChannel(struct IOAudio *aIOB);
void InitAudioChannel(struct IOAudio *aIOB,UWORD volume,UWORD period);
struct IOAudio *DuplicateAudioChannel(struct IOAudio *OrigIOB);
void DeleteDuplication(struct IOAudio *aIOB);
ULONG LoadAudioBuffer(BPTR file,struct IOAudio *aIOB,ULONG toRead);
void Position(BPTR file,char *string);
void WriteMsg(char *errMsg);
void cleanup(int err);
typedef struct Voice8Header
{
ULONG oneShotHiSamples,
repeatHiSamples,
samplesPerHiCycle;
UWORD samplesPerSec;
UBYTE ctOctave,sCompression;
LONG volume;
};
#define MIN(x,y) ( (x) < (y) ) ? (x) : (y)