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