[wdmaudiodev] Wave Device Id to KsPropertySet

  • From: "Sam Tertzakian" <sam@xxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Fri, 3 Mar 2006 17:01:06 -0800

Hi,

 

Given a Wave Device Id of an audio device for which I have written an audio
driver, I need to get a property for the device from the driver.

 

But, I don't see a clean way to convert a Wave Device Id into a form for
which I can acquire the KsProxy IKsProperty interface exported by my driver.

 

Can someone tell me how to do this?

 

I have tried several options, but none work for various reasons. For
example, I enumerate the DSound devices which give me a corresponding Wave
Device Id. But, the IKsProperty interface for DSound is different (it seems
to be a different interterface than the KsProxy IKsProperty) and I cannot
access the property I need in the driver.

 

I only able to access the property if I get the DirectShow IKsProperty
interface, but then I don't know which is the corresponding Wave Device.
Same thing with using SetupApi and using IOCTL_KS_PROPERTY.

 

Thank you

 

 

Other related posts: