DirectX SDK

DirectSoundCapture.CreateCaptureBuffer

The DirectSoundCapture.CreateCaptureBuffer method creates a capture buffer.

Unlike DirectSound, which can mix several sounds into one sound for output, DirectSoundCapture cannot do the exact opposite and extract various sounds from one input sound. For the first version, DirectSoundCapture allows only one capture buffer to exist at any given time per capture device.

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

Parameters

object
Object expression that resolves to a DirectSoundCapture object.
bufferDesc
A DSCBUFFERDESC type containing 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