Author Topic: problem wich same name devices  (Read 13945 times)

loolyn

  • Member
  • ***
  • Posts: 1
problem wich same name devices
« on: August 02, 2011, 07:37:25 am »
Hi All.

Here is my situation. I have two USB devices and they have the same name which is USB Audio Device. Each device consists of
a headset and a microphone.
As far as both devices have the same name, in my application I have decided to have two combo boxes, one for microphone and one for headset and shows the devices in those combo boxes as "USB Audio Device" and "USB Audio Device (2)" and give the user an opportunity to choose which microphone and headset does he/she want to use.
However I have the following problem. I need to guarantee that if the user chooses "USB Audio Device (2)" for microphone and "USB Audio Device (2)" for headset they are the microphone and headset of the same USB device. However I do not find any means to identify that the enumerated microphone and headset are belonging to the same usb device, so that I can put "(2)" near exactly those devices.

Please if you understood my problem and have any solution, please help.

Regards.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: problem wich same name devices
« Reply #1 on: August 02, 2011, 10:14:25 pm »
If one device has the default headset and mic, perhaps you can use that information somehow?

Jan