At 5:44 PM -0500 11/3/99, Roger Chaplin wrote:
>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.
This seems a bit extreme...I don't want to override what the system
does, but, rather, mimic what setting all the Sound Volume pickers in
the Prefs form do. (ie, set 'em all to Off, and the system won't make
any noises...certain unbehaved apps might, but I'm not going to worry
about those right now.)
Ben
+--------------------------------------------+
Ben Gottlieb Stand Alone, Inc.
v: 773-477-2492 f: 773-477-2579
[EMAIL PROTECTED] www.standalone.com