home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / BOUT / SNIP9-91.ZIP / SOUND.C < prev    next >
C/C++ Source or Header  |  1991-09-13  |  307b  |  24 lines

  1. /*
  2. **  SOUND.C
  3. */
  4.  
  5. #include "sound.h"
  6.  
  7. void soundon(void)
  8. {
  9.       short value;
  10.  
  11.       value = inp(SCNTRL);
  12.       value |= SOUNDON;
  13.       outp(SCNTRL, value);
  14. }
  15.  
  16. void soundoff(void)
  17. {
  18.       short value;
  19.  
  20.       value = inp(SCNTRL);
  21.       value &= SOUNDOFF;
  22.       outp(SCNTRL, value);
  23. }
  24.