BASS_ChannelSet3DAttributes

Sets the 3D attributes of a sample or stream channel with 3D functionality.

  Syntax
BASS_ChannelSet3DAttributes handle, mode, min, max, iangle, oangle, outvol
  Parameters
handle
DWORD
The channel handle... a HCHANNEL or HSTREAM.
mode
Integer
The 3D processing mode... one of these flags, -1 = leave current.
BASS_3DMODE_NORMAL Normal 3D processing.
BASS_3DMODE_RELATIVE The channel's 3D position (position/velocity/orientation) is relative to the listener. When the listener's position/velocity/orientation is changed with BASS_Set3DPosition, the channel's position relative to the listener does not change.
BASS_3DMODE_OFF Turn off 3D processing on the channel, the sound will be played in the centre.
min
Float
The minimum distance. The channel's volume is at maximum when the listener is within this distance... 0 or less = leave current.
max
Float
The maximum distance. The channel's volume stops decreasing when the listener is beyond this distance... 0 or less = leave current.
iangle
Integer
The angle of the inside projection cone in degrees... 0 (no cone) to 360 (sphere), -1 = leave current.
oangle
Integer
The angle of the outside projection cone in degrees... 0 (no cone) to 360 (sphere), -1 = leave current.
outvol
Float
The delta-volume outside the outer projection cone... 0 (silent) to 1 (same as inside the cone), less than 0 = leave current.

  Returns

This command does not return a value.

  See also

List of commans
Main page



Hosted by uCoz