Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Devices enumeration

darko77
Registered User
Quote
2014-03-17 16:24:09

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


niko
Moderator
Quote
2014-03-18 06:16:09

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?


darko77
Registered User
Quote
2014-03-18 08:38:49

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


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact