Does anyone know of a reliable way to programmatically associate WIN32 wave device IDs with their corresponding audio lines in the Windows mixer? The mixer APIs suggest a couple of ways that should work, but I can't seem to get any of them to work 100% of the time. Sure, I can find all the WAVEIN source lines and WAVEOUT destination lines, but I can't find a sure way to match them with wave device IDs.
Any experts on the mixer out there? I'd like to get this working on systems with multiple sound cards (and hence multiple mixer drivers).