BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelSet3DPosition Method BASS.NET API for the Un4seen BASS Audio Library
Sets the 3D position of a sample, stream, or MOD music channel with 3D functionality.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
public static bool BASS_ChannelSet3DPosition(
	int handle,
	BASS_3DVECTOR pos,
	BASS_3DVECTOR orient,
	BASS_3DVECTOR vel
)

Parameters

handle
Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM.
pos
Type: Un4seen.BassBASS_3DVECTOR
Position of the sound... = leave current.
orient
Type: Un4seen.BassBASS_3DVECTOR
Orientation of the sound... = leave current.
vel
Type: Un4seen.BassBASS_3DVECTOR
Velocity of the sound... = leave current. This is only used to calculate the doppler effect, and has no effect on the sound's position.

Return Value

Type: Boolean
If succesful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

As with all 3D functions, BASS_Apply3D must be called to apply the changes made.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not a valid channel.
BASS_ERROR_NO3DThe channel does not have 3D functionality.

See Also

Reference