My question is:
How to get the exact link between high level device ID and Hardware MID&PID
of an USB audio device? Or how to get the high level device ID of a given
MID&PID? Especailly when mutiple USB device is plug-in.
What we have tried:
We can open a particulary USB audio device by the device ID, such as using
uDeviceID to open a wave-audio by WaveInOpen() function. And we can also get
the Hardware MID&VID by other functions.
It's supposed that function like waveInGetDevCaps() can get MID&VID for a
given uDeviceID to build the link.
However, by using waveInGetDevCaps(), we always get:
mid = 0x1
pid = 0x65
according to definition:
#define MM_MICROSOFT 1 /* Microsoft Corporation
*/
#define MM_MSFT_WDMAUDIO_WAVEIN 101 /* Generic id for WDM
Audio drivers */
Could anyone help with solving this issue? Thanks!