[oss-devel] A question about SNDCTL_MIX_NREXT

François Revol revol at free.fr
Sat Sep 29 14:16:10 EEST 2007


> >   
> Value of -1 should correspond to the mixer device associated with the 
> mixer device file (say /dev/mixer). Unfortunately there is a buf in 
> current OSS and value of -1 is not handled properly. This will be 
> fixed 
> in the next source drop.

Seemed to work correctly here, but maybe I actually pass the number 
instead of -1, not sure.

> In general OSS 4.0 mixer programs should use /dev/mixer and then find 
> out the mixer device number using SNDCTL_MIXERINFO. Alternatively the 
> mixer device number can be given on command line. It is possible that 
> the /dev/mixerN and /dev/oss/driver/mixN device files may get dropped 
> from future OSS versions.

That seems less clean to me. At least it's cleaner for the BeOS port 
which opens all devices for a card from the same instance of a plugin.
I imagine all other OSes having a high level audio API to work in the 
same way. (someone asked me about porting to ReactOS btw :p)
But of course that doesn't really apply to Unix.

François.



More information about the oss-devel mailing list