Microsoft DirectX 8.1 (Visual Basic)

Capture Buffer Information

Use the DirectSoundCaptureBuffer8.GetCaps method to retrieve information about buffer capabilities. To get information about the data format of the buffer, set when the buffer was created, call the DirectSoundCaptureBuffer8.GetFormat method.

To find out what a capture buffer is doing, call the DirectSoundCaptureBuffer8.GetStatus method. This method returns with a combination of flags that indicate whether the buffer is busy capturing, and if so, whether it is looping; that is, whether the DSCBSTART_LOOPING flag was set in the last call to DirectSoundCaptureBuffer8.Start.

Finally, the DirectSoundCaptureBuffer8.GetCurrentPosition method returns the offsets of the read and capture cursors within the buffer. The read cursor is at the end of the data that has been fully captured into the buffer at this point. The capture cursor is at the end of the block of data that is currently being copied from the hardware. You can safely copy data from the buffer only up to the read cursor.