DirectX SDK

DirectSoundBuffer.GetFormat

The DirectSoundBuffer.GetFormat method retrieves a description of the format of the sound data in the buffer, or the buffer size needed to retrieve the format description.

object.GetFormat(format As WAVEFORMATEX)

Parameters

object
Object expression that resolves to a DirectSoundBuffer object.
format
A WAVEFORMATEX type to contain a description of the sound data in the buffer.

Error Codes

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

See Also

DirectSoundBuffer, DirectSoundBuffer.SetFormat