Microsoft DirectX 8.0 (Visual Basic)

DirectSoundSecondaryBuffer8.SaveToFile

Saves the contents of the buffer to a wave file.

object.SaveToFile(filename As String)

Parts

object
Resolves to a DirectSoundSecondaryBuffer8 object.
filename
Name of the file where the sound buffer will be saved. If a file of that name exists, it is overwritten.

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

See Also

Writing to a Wave File