[MPlayer-dev-eng] [PATCH] mute audio on NetBSD with sun audio output driver
Alexander Becher
abecher at kawo2.rwth-aachen.de
Wed Jan 25 22:04:28 CET 2006
Bernd Ernesti schrieb:
>It shouldn't be so complicated. Just one ioctl with the right parameter.
>Oh, and using a new device: /dev/mixer instead of /dev/audio
I've now read some of the code of /usr/bin/mixerctl in the NetBSD
source tree. They need a fair amount of code and various calls to
ioctl() to set things up correctly before they do the ioctl() that does
the actual work. If I were to mimick that way of using the mixer
interface, is there any kind of place where I can do the initialization
just once, and then have a mute/unmute mixer_ctrl_t set up, which I
just have to send to the device in the set volume function? I would
rather avoid having to enlarge the routine by almost a hundred lines of
code.
Regards,
Alexander
--
PGP key available
Port Payé / Entgelt bezahlt / Postage Paid: http://www.hashcash.org/
More information about the MPlayer-dev-eng
mailing list