Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, is it possible to get MMD enumeration of devices with device ID like in WMI query. I have multiple USB Sound devices that have same PID and VID but have also and unique serial number. EXAMPLE: USB\\VID_0D8C&PID_000C&MI_00\\A&E4C80EA&0&0000 USB\\VID_0D8C&PID_000C&MI_00\\A&46D2FBB&0&0000 A&E4C80EA A&46D2FBB Is it possible to identify specific device as playing device, or to get enumeration order. Operating system is XP. Thanks |
||||
|
You can enumerate devices just like described in the documentation, http://www.ambiera.com/irrklang/... under 'Enumerating sound devices'. Or doesn't it work and you get the same device id for your devices? |
||||
|
Thank you sir for you kind response. Yes I get good enumeration ( from code listed below ). I don't see the serial number but its ok for unique identification of usb cards. Code: for (int i = 0; i < deviceList.DeviceCount; ++i) { textBox1.Text+=deviceList.getDeviceDescription(i)+Environment.NewLine ; textBox1.Text += deviceList.getDeviceID(i) + Environment.NewLine; } Result : default device Realtek HD Audio Input bd6dd71b-3deb-11d1-b171-00c04fc20000 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20002 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20003 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20004 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20005 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20006 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20007 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20008 Result after removal of some usb sound cards and switching places on usb hub: default device Realtek HD Audio Input bd6dd71b-3deb-11d1-b171-00c04fc20000 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20006 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20002 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20005 C-Media USB Headphone Set bd6dd71b-3deb-11d1-b171-00c04fc20003 C-Media USB Headphone Set I suppose I am too much picky for no reason. Thank you weary much sir, for your kind respond. Best regards , Darko |
|