Microsoft DirectX 8.0 (C++) |
Creates and initializes an object that supports the IDirectSoundCapture8 interface.
This function creates an object that supports capture effects. Although the older DirectSoundCaptureCreate function can also be used to obtain the IDirectSoundCapture8 interface, the object created by that function cannot be used to create capture buffers that support the IDirectSoundCaptureBuffer8 interface.
HRESULT WINAPI DirectSoundCaptureCreate8( LPCGUID lpcGUID, LPDIRECTSOUNDCAPTURE8 *lplpDSC, LPUNKNOWN pUnkOuter );
If the function succeeds, the return value is DS_OK.
If the function fails, the return value may be one of the following error values:
DSERR_ALLOCATED |
DSERR_INVALIDPARAM |
DSERR_NOAGGREGATION |
DSERR_OUTOFMEMORY |
On sound cards that do not support full duplex, this method will fail and return DSERR_ALLOCATED.
Header: Declared in dsound.h.
Import Library: Use dsound.lib.