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 >
C/C++ Source or Header  |  1992-07-11  |  1KB  |  58 lines

  1. /* sound generation and timing interrupt
  2.  *
  3.  * Last change:  10 Jul 92  JMG
  4.  *
  5.  * Written by:
  6.  *
  7.  *   Nels Anderson
  8.  *   92 Bishop Drive
  9.  *   Framingham, MA  01701
  10.  *
  11.  * Translated to (Borland) C by:
  12.  *
  13.  *   John Gallant
  14.  *   1249 Cedar Creek Circle
  15.  *   Dayton OH 45459
  16.  *
  17.  * Released to the public domain
  18.  */
  19.  
  20.  
  21. #if defined(FALSE)
  22. #else
  23. #define FALSE (0)
  24. #define TRUE (!FALSE)
  25. #endif
  26.  
  27. #define CPPStyle 0
  28. #define INTR (0x1C)
  29.  
  30.  
  31. #if CPPStyle
  32. extern void interrupt (*New1CInt)(...);    /* address of new interrupt */
  33. extern void interrupt (*Int1CSave)(...);/* saves original $1C interrupt */
  34. #else
  35. extern void interrupt (*New1CInt)();    /* address of new interrupt */
  36. extern void interrupt (*Int1CSave)();    /* saves original $1C interrupt */
  37. #endif
  38. extern char far MakeSound;        /* set while sound is going */
  39. extern int MyClock;            /* general purpose timer */
  40.  
  41. #if 0
  42. extern char SoundSpeed;    /* multiplier used to slow down sounds */
  43. extern char SoundCount;    /* counts how long current sound has been on */
  44. extern char *MySound;    /* points to array of notes and durations */
  45. int NumRepeats;        /* number of times to repeat sound */
  46. int SoundOff;        /* offset into note array */
  47. char SndFlg;        /* set when sounds allowed */
  48. #endif
  49.  
  50. /* prototypes */
  51. void far InitSound(void);
  52. void far StartSound(char far Notes[], int Repeats, char Speed);
  53. #if CPPStyle
  54. void far interrupt TimerInt(...);
  55. #else
  56. void far interrupt TimerInt();
  57. #endif
  58.