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

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

Lokesh Patakolusu wrote:
>
> I am using the following code to check if the driver supports property
> or not.

That's not the correct way to instantiate DirectSound.  There are two
ways:  either you call CoCreateInstance on CLSID_DirectSound (or
CLSID_DirectSound8) for the IDirectSound (or IDirectSound8) interface,
and then call its Initialize method, or you call DirectSoundCreate8,
with returns you an IDirectSound8 interface that has already been
initialized.  You should be able to query that for an IKsPropertySet.

Your bare object has not yet been associated with a driver.

-- 
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

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: