BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGet3DPosition Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves 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_ChannelGet3DPosition(
	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... = don't retrieve it.
orient
Type: Un4seen.BassBASS_3DVECTOR
Orientation of the sound... = don't retrieve it.
vel
Type: Un4seen.BassBASS_3DVECTOR
Velocity of the sound... = don't retrieve it.

Return Value

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

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

Examples

VB
Dim pos As New BASS_3DVECTOR()
Dim orient As New BASS_3DVECTOR()
Dim vel As New BASS_3DVECTOR()
If Bass.BASS_ChannelGet3DPosition(stream, pos, orient, vel) Then
  Console.WriteLine("{0} : {1} : {2}", pos, orient, vel)
End If
BASS_3DVECTOR pos = new BASS_3DVECTOR();
BASS_3DVECTOR orient = new BASS_3DVECTOR();
BASS_3DVECTOR vel = new BASS_3DVECTOR();
if (Bass.BASS_ChannelGet3DPosition(stream, pos, orient, vel))
{
  Console.WriteLine("{0} : {1} : {2}", pos, orient, vel);
}
See Also

Reference