[16398] in Athena Bugs
Re: /dev/audio on sun
daemon@ATHENA.MIT.EDU (t. belton)
Thu Oct 8 12:04:21 1998
Date: Thu, 8 Oct 1998 12:04:15 -0400 (EDT)
From: "t. belton" <tbelton@MIT.EDU>
To: "Todd C. Parnell" <tparnell@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: <199810080214.WAA14871@fop.mit.edu>
> I have a private sparc5, with access on. One of my remote users was able
> to play sound through the speaker while I was logged on. This was,
> naturally, quite surprising.
>
> Is there any way to restrict audio to the person on console?
>
> In case it matters, the sound was from an avi accessed over the web with
> netscape.
But audio IS being restricted to the person on console. Heh. Only the
person on console has the speaker :)
That wasn't quite what you wanted, was it?
If you just know that your remote user is going to play more AVIs on your
system, then just disable sound for whatever movie player you're using. On
a Sun with Athena that's likely to be 'xanim' - where your ~/.mailcap
file says '/path/xanim %s', change it to '/path/xanim -Ae %s' and it'll be
quiet.
If you want to disable ALL audio - safely - try setting the AUDIODEV
environment variable to /dev/null. This is the Sun-recommended method. If
they provide an audio control command, I don't know about it. There's a C
package to do it, but nothing command-line. ('audioplay' has things
like volume settings, but reverts to previous values on exiting.)
That's based on Sun knowledge, not Athena knowledge. There may be a better
way to do it, hidden in the Athena bins, that I don't know about, so if
anyone else wants to speak up ....
-Todd Belton