Microsoft DirectX 8.1 (Visual Basic) |
The SetMode method sets the operation mode for 3-D sound processing.
Syntax
object.SetMode( _
mode As CONST_DS3DMODEFLAGS, _
applyFlag As CONST_DS3DAPPLYFLAGS)
Parts
object
Resolves to a DirectSound3DBuffer8 object.
mode
One of the constants of the CONST_DS3DMODEFLAGS enumeration that specifies the 3-D sound processing mode to set.
applyFlag
Value that specifies when the setting should be applied. 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.