home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19228 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.5 KB

  1. Xref: sparky comp.lang.c:19228 comp.lang.c++:18698 comp.lang.misc:4084
  2. Newsgroups: comp.lang.c,comp.lang.c++,comp.lang.misc
  3. Path: sparky!uunet!mcsun!Germany.EU.net!news.Hamburg.Germany.EU.net!jwminhh!wieck
  4. From: wieck@jwminhh.hanse.de (Jan Wieck)
  5. Subject: Re: How to turn PC speaker off?
  6. Message-ID: <1993Jan5.231923.391@jwminhh.hanse.de>
  7. Organization: Private Site under Mach386
  8. X-Newsreader: Tin 1.1 PL4
  9. References: <17645@umd5.umd.edu>
  10. Date: Tue, 5 Jan 1993 23:19:23 GMT
  11. Lines: 26
  12.  
  13. cschang@hamlet.umd.edu (C. S. Chang) writes:
  14. : Is there any way to turn the PC speaker off so that there will be no
  15. : beeps if a certain function call failed.  I do not have access to this
  16. : particular function call which beeps at failure.  So I am looking for
  17. : a way to prevent the PC from generating some beeping noise.
  18.  
  19. Look into .../kernel/console.c function beep().
  20.  
  21. It is easy to implement a system-call, that enables or disables a flag
  22. which is testet in beep(). If this call is only permittet to root, the
  23. sound will be suppressed without any chance for the application to work
  24. around.
  25.  
  26. Pardon to all C-programmers, that this answer is MINIX-specific :-)
  27.  
  28. Oh, you wanted a solution for PC-DOS? Well, also possible, cut the
  29. wire (this is no joke - it's the only way under PC-DOS).
  30.  
  31.  
  32. Until later, Jan
  33.  
  34. -- 
  35. # Any language keeps its own misunderstandings; #
  36. # why shouldn't programming languages do?       #
  37. #                                               #
  38. #            wieck@jwminhh.hanse.de (Jan Wieck) #
  39.