Microsoft DirectX 8.1 (Visual Basic)

DirectSoundSecondaryBuffer8.SaveToFile

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

Syntax

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