Microsoft DirectX 8.1 (Visual Basic)

DirectSoundCapture8.CreateCaptureBuffer

The CreateCaptureBuffer method creates a capture buffer.

Syntax

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

Parts

object

Resolves to a DirectSoundCapture8 object.

bufferDesc

DSCBUFFERDESC type that specifies values for the capture buffer being created.

Return Values

Returns a DirectSoundCaptureBuffer8 object.

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

On Microsoft Windows 98 and Windows 2000, each capture device supports a single buffer.