home *** CD-ROM | disk | FTP | other *** search
/ Kids Cube / 2_Music.iso / mel / soundsys.h < prev    next >
Text File  |  1992-07-27  |  1KB  |  28 lines

  1. #define TimerTick       0x8   /* Don't mess with this... */
  2. #define noisemax        8192  /* Change this for a bigger...    */
  3.                               /* ...(or smaller) sound queue... */
  4.  
  5. /* The following is to make life easier for me and you... */
  6.  
  7. #define RegList1 unsigned bp, unsigned di, unsigned si, unsigned ds,
  8. #define RegList2 unsigned es, unsigned dx, unsigned cx, unsigned bx,
  9. #define RegList3 unsigned ax, unsigned ip, unsigned cs, unsigned flags
  10. #define RegIntList RegList1 RegList2 RegList3
  11.  
  12. #define FALSE 0
  13. #define TRUE  1
  14. #define ON    1
  15. #define OFF   0
  16.  
  17. typedef struct
  18. {
  19.   int duration;               /* This is the struc of the sound queue */
  20.   int freq;
  21. } noise;
  22.  
  23. void init_sound(void);       /* Proto for init sound ISR */
  24. void restore_sound(void);    /* Proto for restore sound */
  25. int submit_sound(int freq,int delay); /* Proto for submit sound */
  26.                                        /* Proto for sound ISR */
  27. void interrupt soundsystem(RegIntList);
  28.