Microsoft DirectX 8.1 (Visual Basic)

DirectSound3DBuffer8.SetConeOrientation

The SetConeOrientation method sets the orientation of the sound projection cone for this sound buffer. This method has no effect unless the cone angle and cone volume factor have also been set.

Syntax

object.SetConeOrientation( _
  x As Single, _
  y As Single, _
  z As Single, _
  applyFlag As CONST_DS3DAPPLYFLAGS)

Parts

object

Resolves to a DirectSound3DBuffer8 object.

x, y, z

Coordinates of the new sound cone orientation vector.

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.

See Also