[oss-devel] A question about SNDCTL_MIX_NREXT
Yair K
cesium2 at gmail.com
Fri Sep 28 23:31:49 EEST 2007
If an application opens a mixer device in the new naming scheme (e.g.
/dev/oss/device_name/mix1 on Linux), what is the value of the
"mixer_device_number" ( = argument to ioctl) that should be given to the
SNDCTL_MIX_NREXT ioctl?
http://manuals.opensound.com/developer/SNDCTL_MIX_NREXT.html says - "The
arg variable should be initialized to the mixer device number prior the
call". Is that the same number as the one given when using "/dev/mixer"?
That would make the new scheme rather useless for mixers (once we have the
mixer device number, we might as well open "/dev/mixer").
The reason I ask this is that I'm trying to get ossxmix to accept an
expanded form of the "-d" parameter (like all other oss utils),
where -d can accept either a number (for the old scheme), or a device
name. This is useful in case of mixers for usb devices and such, which
don't have a consistent device numbering. I'm not sure, however, what is
the correct solution here and I don't have the equipment to test.
--
Yours,
Yair K.
More information about the oss-devel
mailing list