Platform SDK: DirectX

DirectSound3DBuffer.SetMode

The DirectSound3DBuffer.SetMode method sets the operation mode for 3-D sound processing.

object.SetMode(mode As CONST_DS3DMODEFLAGS, _
    applyFlag As CONST_DS3DAPPLYFLAGS)

Parameters

object
Object expression that resolves to a DirectSound3DBuffer object.
mode
One of the constants of the CONST_DS3DMODEFLAGS enumeration that specifies the 3-D sound processing mode to set.
applyFlag
Value that indicates when the setting should be applied. This value must be one of the constants of the CONST_DS3DAPPLYFLAGS enumeration.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.