The DirectSoundCaptureCreate8 function creates and initializes an object that supports the IDirectSoundCapture8 interface. 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 DirectSoundCaptureCreate8( LPCGUID lpcGUID, LPDIRECTSOUNDCAPTURE8 * lplpDSC, LPUNKNOWN pUnkOuter );
Value | Description |
---|---|
DSDEVID_DefaultCapture | System-wide default audio capture device. |
DSDEVID_DefaultVoiceCapture | Default voice capture device. |
If the function succeeds, it returns DS_OK. If it fails, the return value may be one of the following values.
Return Code |
---|
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.