DirectSoundCaptureBuffer8.WriteBuffer
Writes data to the capture buffer. Most applications do not use this method, as data is written to the buffer in response to the DirectSoundCaptureBuffer8.Start method.
object.WriteBuffer( _
start As Long, _
size As Long, _
buffer As Any, _
flags As CONST_DSCBLOCKFLAGS)
Parts
- object
- Resolves to a DirectSoundCaptureBuffer8 object.
- start
- Offset, in bytes, from the start of the buffer to where the write begins.
- size
- Size, in bytes, of the portion of the buffer to read. The sound buffer is conceptually circular, so this value can be greater than the number of bytes between start and the end of the buffer. This parameter is ignored if DSCBLOCK_ENTIREBUFFER is set in the flags parameter.
- buffer
- Variable containing the data to write to the capture buffer. Typically this is an array of bytes, and you pass the first element of the array.
- flags
- One of the constants from the CONST_DSCBLOCKFLAGS enumeration.
Error Codes
If the method fails, an error is raised and Err.Number may be set to one of the following error codes.
See Also
DirectSoundCaptureBuffer8.GetCurrentPosition