Platform SDK: DirectX

DirectSoundCapture.CreateCaptureBuffer

The DirectSoundCapture.CreateCaptureBuffer method creates a capture buffer.

object.CreateCaptureBuffer( _ 
    bufferDesc As DSCBUFFERDESC) _ 
    As DirectSoundCaptureBuffer

Parameters

object
Object expression that resolves to a DirectSoundCapture object.
bufferDesc
DSCBUFFERDESC type that specifies values for the capture buffer being created.

Return Values

If the method succeeds, a DirectSoundCaptureBuffer object is returned.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following error values.

DSERR_INVALIDPARAM
DSERR_BADFORMAT
DSERR_GENERIC
DSERR_NODRIVER
DSERR_OUTOFMEMORY
DSERR_UNINITIALIZED

Remarks

Only one capture buffer can exist for a capture device.