Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!agate!shelby!portia.stanford.edu!jessica.stanford.edu!aaron From: aaron@jessica.stanford.edu (Aaron Wallace) Newsgroups: comp.windows.ms Subject: Re: Replacing the beep? Keywords: Sound, windows, alert beep Message-ID: <1990Nov2.221413.6515@portia.Stanford.EDU> Date: 2 Nov 90 22:14:13 GMT References: <1990Nov2.170511.21528@cs.ucla.edu> Sender: Aaron Wallace Distribution: na Organization: Academic Information Resources Lines: 23 In article <1990Nov2.170511.21528@cs.ucla.edu> parkerw@lanai.cs.ucla.edu (Parker Waechter) writes: >Is there an aplication that intercepts system messages and lets you set up >sounds to be played in different types of events? Ie a sound to be played >when any aplication is closed, or opened, or resized or focused etc.... >I think there is something or other like this on the Mac. > >On this same line, does the SDK have different messages sound commands >other than "Beep"? Is there any possibility of someone creating a driver >for the soundblaster or for MT32's or whatever to use something other >than a PC speaker? It seems that for most events a "simple" system message hook would work. Does anyone, though, know how I could trap calls to "MessageBeep"? It can be done-- there was a Win 2.xx program called Zounds that replaced the beep with a variety of neat effects. I'd be more than willing to write something that traps such beeps, loads a sound file, and plays it with DSOUND.DLL if someone can point me in the right direction. For that matter, is there a generic way of "trapping" any system call? It seems ATM does something like this by installing a "stub" driver for system.drv and having it call the old system.drv... Aaron Wallace