[wdmaudiodev] Re: Wave Device Id to KsPropertySet

  • From: "Sam Tertzakian" <sam@xxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Sun, 5 Mar 2006 16:16:46 -0800

Yes, it works perfectly. 
Thank you for your time Dan.

Actually I had seen the DRV_QUERYDEVICEINTERFACE when I started looking into
this...but, then when I saw that DSound had access to KsProperty and Wave
Device Id, I got seduced into going that route because it seemed to have
everything I needed...and I forgot about this option.

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Daniel E. Germann
Sent: Saturday, March 04, 2006 8:03 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Wave Device Id to KsPropertySet

Sam,

Take a look at DRV_QUERYDEVICEINTERFACE[SIZE].  These messages allow you to 
get the device interface for a particular multimedia device.  Given that, 
you can open the device and use DeviceIoControl to issue your property 
requests.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Audio_d/hh/
Audio_d/pcdesign_008b0368-ccba-42e6-be0f-29b9c8a95fdd.xml.asp

FYI, make sure you send this message to a device ID, *not* to a device 
handle (as in waveOutMessage((HWAVEOUT) nId, ...)).

-Dan


----- Original Message -----
> From: "Sam Tertzakian"
> Subject: [wdmaudiodev] Wave Device Id to KsPropertySet
> 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

******************

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/

******************

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/

Other related posts: