This is a fun one I just came across. There are sound
cards that:
1. Do not have a mixer at all!!!!
2. Have a mixer for PCM but not a master
3. Have a master but not a PCM or CD mixer
so... we need to handle these instances... here are my
suggestions (which since I know of the issue normally
means I'm going to be the one to fix it.)
1. we're pretty much sol.... just emulate the controls
and really don't change anything.
2. Emulate the two controls i.e. calculate the "real"
volume by some formula (I'm lazy so I'll most likly
make it linear ... master volume = ((master vol
setting) + (pcm vol setting))/2 ... however we need to
store the "faked" settings so that they can be read.
3. Same as the above.... only replace Master volume =
with pcm&cd volume =
Cheers!