|Microsoft DirectX 9.0|
The GetObjectInPath method retrieves an interface to an effect object associated with the buffer.
HRESULT GetObjectInPath( REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID * ppObject );
Value of type REFGUID that specifies the unique class identifier of the object being searched for, such as GUID_DSCFX_CLASS_AEC.
Index of the object within objects of that class in the path. See Remarks.
Unique identifier of the desired interface, such as IID_IDirectSoundCaptureFXAec8.
Address of a variable that receives the desired interface pointer.
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:
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.
An object is returned solely on the basis of whether it matches rguidObject and dwIndex. It is up to the application to ensure that rguidInterface specifies an interface that can be expected to be found on the object.
Header: Declared in dsound.h.