Ben Gottlieb <[EMAIL PROTECTED]> wrote:
> I'll ask this one again: is there a way to globals mute the device 
> (so that no clicks or other sounds are played)? I want to do this 
> from a hack, a "Mute button" kinda thing.

Patch the SndDoCmd and SndPlaySmf traps (the latter only on OS 3.0 or 
later) and conditionally swallow them up. You'll want to examine the 
command arguments to determine what the OS calls are really doing, and 
either let them through or not.

Of course, some apps (typically games) go directly to the hardware to 
make noises, rather than using one of these two OS calls. Those apps 
will make noise no matter what you do.

--
Roger Chaplin
<[EMAIL PROTECTED]>

Reply via email to