DirectX SDK

DirectSoundCaptureBuffer.GetFormat

The DirectSoundCaptureBuffer.GetFormat method retrieves the current format of the capture buffer.

object.GetFormat(waveformat As WAVEFORMATEX)

Parameters

object
Object expression that resolves to a DirectSoundCaptureBuffer object.
waveformat
A WAVEFORMATEX type to contain a description of the sound data in the capture buffer. To retrieve the buffer size needed to contain the format description, specify Nothing.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.