The GetObjectInPath method retrieves an interface to an effect object associated with the buffer.
HRESULT GetObjectInPath( REFGUID rguidObject , DWORD dwIndex , REFGUID rguidInterface , LPVOID * ppObject );
If the method succeeds, the return value is DS_OK. If the method fails, the return value may be one of the following error values:
Return code |
DSERR_CONTROLUNAVAIL |
DSERR_INVALIDPARAM |
DSERR_OBJECTNOTFOUND |
The value in dwIndex is the index of the object within the array of effects in the DSCBUFFERDESC structure passed to DirectSoundFullDuplexCreate8 or IDirectSoundCapture8::CreateCaptureBuffer.
Header: Declared in Dsound.h.
Import Library: Use Dsound3d.dll.