home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / beep.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  427 b   |  26 lines

  1. /*
  2. ** beep.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include "pictor.h"
  9.  
  10. int _PL_errorbeep = TRUE;
  11. int _PL_beepfreq = 880;
  12. int _PL_beeplen = 2;
  13.  
  14. /*
  15. ** Sounds the computer's internal speaker and
  16. ** flushes the keyboard buffer.
  17. */
  18. void beep(void)
  19. {
  20.     if(_PL_errorbeep != FALSE) {
  21.         tone(_PL_beepfreq,_PL_beeplen);
  22.         kbdflush();
  23.     }
  24.  
  25. } /* beep */
  26.