[wdmaudiodev] Re: Checking if a driver supports a property or not.

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 01 Jun 2009 14:10:17 -0700

Lokesh Patakolusu wrote:
> Thanks for the reply.I wanted to check if the soundmax driver supports
> the property or not.Whatever the code i posted before is working
> fine(able to create instance).

Well, clearly it does NOT work fine, if you can't access the KS
properties of the driver.

> I got stuck up with associating the soundmax driver.Can anybody pls
> guide me how to associate the driver since i wanted to check for
> soundmax driver.

I already told you this.

    CComPtr<IDirectSound8> pSound;
    DirectSoundCreate8( NULL, &pSound, NULL );
    CComQIPtr<IKsPropertySet> pKs = pSound;

If the SoundMax is not your default playback device, then use
DirectSoundEnumerate to look for the device description, and pass that
GUID as the first parameter to DirectSoundCreate8.

Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.


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


Other related posts: