Platform SDK: DirectX

DirectSoundBuffer.SaveToFile

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

object.SaveToFile(filename As String)

Parameters

object
Object expression that resolves to a DirectSoundBuffer object.
filename
Name of the file where the sound buffer will be saved. If a file of that name exists, it is overwritten; data is not appended.

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