|Microsoft DirectX 9.0|
The CreateCaptureBuffer method creates a buffer for capturing waveform audio.
HRESULT CreateCaptureBuffer( LPCDSCBUFFERDESC pcDSCBufferDesc, LPDIRECTSOUNDCAPTUREBUFFER * ppDSCBuffer, LPUNKNOWN pUnkOuter );
Pointer to a DSCBUFFERDESC structure containing values for the capture buffer being created.
Address of a variable that receives an IDirectSoundCaptureBuffer interface pointer. Use QueryInterface to obtain IDirectSoundCaptureBuffer8. See Remarks.
Address of the controlling object's IUnknown interface for COM aggregation. Must be NULL.
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.
On Microsoft Windows 98 and Windows 2000, each capture device supports a single buffer.
The IDirectSoundCaptureBuffer8 interface is supported only on buffers created by an object of class CLSID_DirectSoundCapture8. If the IDirectSoundCapture8 interface was obtained from DirectSoundCaptureCreate8, IDirectSoundCaptureBuffer8 is supported. If IDirectSoundCapture8 was obtained from the earlier DirectSoundCaptureCreate function, only IDirectSoundCaptureBuffer is supported.
Header: Declared in dsound.h.