home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
120.lha
/
Muncho2
/
soundobj.h
< prev
Wrap
C/C++ Source or Header
|
1986-11-21
|
379b
|
20 lines
struct SOUNDOBJ {
BYTE *data_;
ULONG datalen;
UWORD rate;
int period;
int (*sound)();
int (*delete)();
};
#define SOCreate(fn) SO_new((fn))
#define SODelete(p) {(*(p)->delete)((p));free((char *)(p));}
#define SOSound(p) (*(p)->sound)((p))
#define SOSetDuration(p,d) (*(p)->duration=(d))
#define SOGetDuration(p,d) (*(p)->duration)
extern struct SOUNDOBJ *SO_new();