IKsPropertySet
(1)
DirectSoundPrivate
(1)
DirectSoundDevice
(1)
WaveDeviceId
(1)
DirectSound
(1)
Windows
(1)
DSPROPSETID
(1)
INITGUID
(1)

unresolved external symbol _IID_IKsPropertySet

Asked By Barzo
26-Oct-09 08:51 PM
Hi,

In my static library, I am trying to use the IKsPropertySet interface
to retrieve the waveDeviceId from DirectSound device GUID.

But when I compile the test program that use my lib I get:

AudioLib4d.lib(RtAudio.obj) : error LNK2001: unresolved external
symbol _DSPROPSETID_DirectSoundDevice
AudioLib4d.lib(RtAudio.obj) : error LNK2001: unresolved external
symbol _IID_IKsPropertySet
AudioLib4d.lib(RtAudio.obj) : error LNK2001: unresolved external
symbol _CLSID_DirectSoundPrivate

I have added the dsound.lib to my linker paths and also, before
inserting the new function that use IKsPropertySet, the project worked
well!

Where could be the problem?

Thanks
Daniele.

You need the guids for those objects to be defined in your project.

Chuck Walbourn [MSFT] replied to Barzo
28-Oct-09 04:34 PM
You need the guids for those objects to be defined in your project.

If you are using the DXSDK, you can link in dxguid.lib.

If you are using the Windows SDK or the DXSDK, you can #define INITGUID
before including dsound.h in ONE of your compliation modules and it will be
defined in the data segment by the header.

--
--
-Chuck Walbourn
SDE, XNA Developer Connection

This posting is provided "AS IS" with no warranties, and confers no rights.
Post Question To EggHeadCafe
C++ / VB Question on IKSPropertySet Interface parameters Hi, I'm a beginner to DirectShow and have some understanding problems with the IKsPropertySet. Can someone explain me the difference of the pInstanceData and pPropData in the IKsPropertySet::Set and IKsPropertySet::Get methodes? The SDK is 'from a beginners point of empty {NULL, 0}, as shown in the sample code for IKsPropertySet::Get(). - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot bring some light into the dark ;) Christian keywords: Question, on, IKSPropertySet, Interface, parameters description: Hi, I'm a beginner to DirectShow and have some understanding problems with the IKsPropertySet. Can someone explain me the difference of the pInstanceDat
riid = = _uuidof(IAMStreamConfig)) *ppv = (IAMStreamConfig*)this; else if(riid = = _uuidof(IKsPropertySet)) *ppv = (IKsPropertySet*)this; else return CSourceStream::QueryInterface(riid, ppv); AddRef(); return S_OK
C++ / VB Are there resources about implementing an IKsPropertySet or IKsControl on a PushSource Filter? Hi. . . I've been method. . so I looked for other ways. . SDK says use IKsPropertySet or better (if I got that right) IKsControl. . very little to influence the filter (programmatically). . besides, it doesn't use IKsPropertySet. . Maybe I'm on the wrong track with that and found a solution keywords: Are, there, resources, about, implementing, an, IKsPropertySet, or, IKsControl, on, a, PushSource, Filter? description: Hi. . . I've
In my static library, I am trying to use the IKsPropertySet interface to retrieve the waveDeviceId from DirectSound device GUID. But paths and also, before inserting the new function that use IKsPropertySet, the project worked well! Where could be the problem? Thanks In my static library, I am trying to use the IKsPropertySet interface to retrieve the waveDeviceId from DirectSound device GUID. But
ppv); . . }; class CVCamStream :public custom_class, public CSourceStream, public IAMStreamConfig, public IKsPropertySet { public: . . STDMETHODIMP my_custom_function(void) { return NOERROR; } . . }; compilation OK I tried
way to change it programmatically (lowering or incrementing) Regards, DSound & IKsPropertySet-> Get() but it is complicated. . . (CLSID_DirectSoundPrivate and so on) keywords
4File - -> ffdshow video decoder - -> Video Renderer - -> ffdshow audio decoder - -> AC3Filter - -> DirectSoundDevice - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - But when I am loading the same file in my
additional information? Thanks. From the documentation, you need to support IKsPropertySet on your capture pin and return PIN_CATEGORY_CAPTURE for Get(AMPROPSETID_Pin implementing the IAMStreamConfig on each of the pins and supporting IKsPropertySet on them. Why do you think implementing IAMStreamConfig the filter The March Hare [MVP]" Sure. I have implemented IAMStreamConfig and IKsPropertySet on my created IPin. But it never come into my IPin to QI IAMStreamConfig. And on IKsPropertySet, I saw it query AMPROPSETID_Pin and PropID = 0. And I