[MPlayer-dev-eng] [PATCH] mute audio on NetBSD with sun audio output driver
Alexander Becher
abecher at kawo2.rwth-aachen.de
Thu Dec 22 17:30:02 CET 2005
Bernd Ernesti schrieb:
>On Thu, Dec 22, 2005 at 01:50:01AM +0100, Alexander Becher wrote:
>> Since revision 1.19 of the file libao2/ao_sun.c, muting is as follows:
>> mixer volume is not changed, only a mute flag is set, which does not
>> exist on NetBSD (nor on OpenBSD to my knowledge). Therefore, muting has
>> no effect. With the attached patch, when the volume levels are
>> requested to be set to zero, they are changed in addition to the mute
>> flag being set.
>
>Hmm, that is partly true, you can't set that flag via audio_info, but
>you should be able to use mixer_ctrl_t to mute it via outputs.master.mute=on.
>
>man 4 audio.
That's true, but:
1) the code would probably not be as simple and
2) I'm not sure if outputs.master.mute exists in all audio drivers.
If the answer to (2) is yes, using the mixer interface is probably
indeed preferable.
Regards
Alexander
--
PGP key available
Port Payé / Entgelt bezahlt / Postage Paid: http://www.hashcash.org/
More information about the MPlayer-dev-eng
mailing list