[MPlayer-dev-eng] [PATCH] mute audio on NetBSD with sun audio output driver

Bernd Ernesti mplayer-dev-eng at lists.veego.de
Thu Dec 22 07:31:18 CET 2005


On Thu, Dec 22, 2005 at 01:50:01AM +0100, Alexander Becher wrote:
> Hi,
> 
> for some time, muting the audio has not been working in MPlayer on my
> NetBSD system. Today I got annoyed enough, digged through the code,
> found the cause and fixed it.
> 
> 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.

Which reminds me that i need to upload a sample .mp4 file, which has audio
problems on my system, where the .avi version from the same people works
fine. The mp4 file won't play correclty even when i disable the video.

Bernd




More information about the MPlayer-dev-eng mailing list