home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / alde_c / misc / lib / dllib / sound.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-09-08  |  727 b   |  21 lines

  1. /*
  2. **          SM.LIB  function source code
  3. **  Copyright 1986, S.E. Margison
  4. **
  5. **  FUNCTION: sound.h
  6. ** defines for IBM speaker control
  7. */
  8.  
  9. /* defines for mktone() update parameter: */
  10. #define ON 0          /* turn the speaker on */
  11. #define UPDATE 1      /* sound is on, just change freq */
  12. #define TOGGLE 2      /* for delay use, turn on, then off */
  13.  
  14. /* port equates */
  15. #define SCNTRL 97     /* sound control port */
  16. #define SOUNDON 0x03  /* bit mask to enable speaker */
  17. #define SOUNDOFF 0xfc /* bit mask to disable speaker */
  18. #define C8253 67      /* port address to control 8253 */
  19. #define SETIMER 182   /* tell 8253 to expect freq data next */
  20. #define F8253 66      /* frequency address on 8253 */
  21.