| Platform SDK: DirectX |
The DirectSoundCapture.CreateCaptureBuffer method creates a capture buffer.
object.CreateCaptureBuffer( _
bufferDesc As DSCBUFFERDESC) _
As DirectSoundCaptureBuffer
If the method succeeds, a DirectSoundCaptureBuffer object is returned.
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 |
Only one capture buffer can exist for a capture device.