DirectX SDK

DirectSoundBuffer.SaveToFile

The DirectSoundBuffer.SaveToFile method saves the contents of the DirectSound buffer to a file.

object.SaveToFile(filename As String)

Parameters

object
Object expression that resolves to a DirectSoundBuffer object.
filename
The name of the file where the sound buffer will be saved.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following error values:

DSERR_INVALIDCALL
DSERR_INVALIDPARAM