home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bila Vrana
/
BILA_VRANA.iso
/
031A
/
MELODY26.ZIP
/
MELODY26.EXE
/
UTILS
/
SOUNDSYS.H
< prev
Wrap
Text File
|
1996-01-06
|
1KB
|
28 lines
#define TimerTick 0x8 /* Don't mess with this... */
#define noisemax 8192 /* Change this for a bigger... */
/* ...(or smaller) sound queue... */
/* The following is to make life easier for me and you... */
#define RegList1 unsigned bp, unsigned di, unsigned si, unsigned ds,
#define RegList2 unsigned es, unsigned dx, unsigned cx, unsigned bx,
#define RegList3 unsigned ax, unsigned ip, unsigned cs, unsigned flags
#define RegIntList RegList1 RegList2 RegList3
#define FALSE 0
#define TRUE 1
#define ON 1
#define OFF 0
typedef struct
{
int duration; /* This is the struc of the sound queue */
int freq;
} noise;
void init_sound(void); /* Proto for init sound ISR */
void restore_sound(void); /* Proto for restore sound */
int submit_sound(int freq,int delay); /* Proto for submit sound */
/* Proto for sound ISR */
void interrupt soundsystem(RegIntList);