The Initialize method initializes a capture buffer object. Because the IDirectSoundCapture8::CreateCaptureBuffer method and the DirectSoundFullDuplexCreate8 function call the IDirectSoundCaptureBuffer8::Initialize method internally, this method is not used by applications.
HRESULT Initialize( LPDIRECTSOUNDCAPTURE pDirectSoundCapture, LPCDSCBUFFERDESC pcDSCBufferDesc );
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_INVALIDPARAM |
DSERR_ALREADYINITIALIZED |
Header: Declared in Dsound.h.
Import Library: Use Dsound3d.dll.