DirectX SDK |
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)
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.