The methods of the IDirectSoundCaptureBuffer interface are used to manipulate sound capture buffers.
-
Description of GetCaps.
-
Description of GetFormat.
-
Description of GetStatus.
-
Description of Initialize.
-
Description of GetCaps.
-
Description of Start.
-
Description of Stop.
-
Description of Update.
PyIDirectSoundCaptureBuffer.GetCaps
GetCaps() Returns the capabilities of the DirectSound Capture Buffer.
PyIDirectSoundCaptureBuffer.GetCurrentPosition
GetCurrentPosition() Returns a tuple of the current capture and read position in the buffer. The capture position is ahead of the read position. These positions are not always identical due to possible buffering of captured data either on the physical device or in the host. The data after the read position up to and including the capture position is not necessarily valid data.
PyIDirectSoundCaptureBuffer.GetFormat
GetFormat() Retrieves the current format of the sound capture buffer as a WAVEFORMATEX object.
PyIDirectSoundCaptureBuffer.GetStatus
GetStatus() Retrieves the current status of the sound capture buffer.
PyIDirectSoundCaptureBuffer.Initialize
Initialize() Not normally used. Used IDirectSoundCapture.CreateCaptureBuffer instead.
Start(dwFlags) The PyIDirectSoundCaptureBuffer::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.
-
dwFlags=0 : int
Flags that specify the behavior for the capture buffer when capturing sound data. Possible values for dwFlags can be one of the following:
DSCBSTART_LOOPING
Stop() The IDirectSoundCaptureBuffer::Stop method puts the capture buffer into the "stop" state and stops capturing data. If the capture buffer is already in the stop state then the method has no effect.
PyIDirectSoundCaptureBuffer.Update
Update(dwReadCursor, dwReadBytes, dwFlags) Retrieve data from the capture buffer.
-
dwReadCursor : int
Offset, in bytes, from the start of the buffer to where the update begins.
-
dwReadBytes : int
Size, in bytes, of the portion of the buffer to update.
-
dwFlags=0 : int
Flags modifying the update event. This value can be 0 or the following flag: DSCBLOCK_ENTIREBUFFER
The dwReadBytes parameter is to be ignored and the entire capture buffer is to be locked.