home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
SOUNDC.ZIP
/
SOUNDER.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-11
|
1KB
|
58 lines
/* sound generation and timing interrupt
*
* Last change: 10 Jul 92 JMG
*
* Written by:
*
* Nels Anderson
* 92 Bishop Drive
* Framingham, MA 01701
*
* Translated to (Borland) C by:
*
* John Gallant
* 1249 Cedar Creek Circle
* Dayton OH 45459
*
* Released to the public domain
*/
#if defined(FALSE)
#else
#define FALSE (0)
#define TRUE (!FALSE)
#endif
#define CPPStyle 0
#define INTR (0x1C)
#if CPPStyle
extern void interrupt (*New1CInt)(...); /* address of new interrupt */
extern void interrupt (*Int1CSave)(...);/* saves original $1C interrupt */
#else
extern void interrupt (*New1CInt)(); /* address of new interrupt */
extern void interrupt (*Int1CSave)(); /* saves original $1C interrupt */
#endif
extern char far MakeSound; /* set while sound is going */
extern int MyClock; /* general purpose timer */
#if 0
extern char SoundSpeed; /* multiplier used to slow down sounds */
extern char SoundCount; /* counts how long current sound has been on */
extern char *MySound; /* points to array of notes and durations */
int NumRepeats; /* number of times to repeat sound */
int SoundOff; /* offset into note array */
char SndFlg; /* set when sounds allowed */
#endif
/* prototypes */
void far InitSound(void);
void far StartSound(char far Notes[], int Repeats, char Speed);
#if CPPStyle
void far interrupt TimerInt(...);
#else
void far interrupt TimerInt();
#endif