DirectX SDK

DirectSoundCaptureBuffer.Start

The DirectSoundCaptureBuffer.Start method puts the capture buffer into the capture state and begins capturing data into the buffer. If the capture buffer is already in the capture state then the method has no effect.

object.Start(flags As CONST_DSCBSTARTFLAGS)

Parameters

object
Object expression that resolves to a DirectSoundCaptureBuffer object.
flags
Flags that specify the behavior for the capture buffer when capturing sound data. Flags specifying how to play the buffer. The following constant of the CONST_DSCBSTARTFLAGS enumeration is defined:
DSCBSTART_LOOPING
Once the end of the buffer is reached, capture restarts at the beginning and continues until explicitly stopped.

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_NODRIVER
DSERR_OUTOFMEMORY