Anton Shpakovsky skrev 2011-05-23 06:07:
Hi, I have a virtual audio microphone based on MSVAD. I use DirectShow to enumerate devices and I want to exlude my driver from the list. I do not think that FriendlyName from PropertyBag is a good way for filtering, so I started to look for more precise way of doing filtering. AFAIK, FriendlyName will be different with different system languages, so my question is - how can I get unique device identifier while enumerating with DShow for not to show my microphone along with other mic devices on the list?
During the enumeration, you can ask each filter for the Component ID (which is handled in MSVAD by CMiniportWaveCyclic::PropertyHandlerComponentId), via KSPROPSETID_General/KSPROPERTY_GENERAL_COMPONENTID/KSPROPERTY_TYPE_GET which returns a GUID. In MSVAD its defined as PID_MSVAD, so you'll just have to make sure it is unique. Regards, /Rob ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/