BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGet3DAttributes Method (Int32, BASS3DMode, Single, Single, Int32, Int32, Int32)BASS.NET API for the Un4seen BASS Audio Library
Retrieves the 3D attributes 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_ChannelGet3DAttributes(
	int handle,
	ref BASS3DMode mode,
	ref float min,
	ref float max,
	ref int iangle,
	ref int oangle,
	ref int outvol
)

Parameters

handle
Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM.
mode
Type: Un4seen.BassBASS3DMode
The 3D processing mode (see BASS3DMode).
min
Type: SystemSingle
The minimum distance.
max
Type: SystemSingle
The maximum distance.
iangle
Type: SystemInt32
The angle of the inside projection cone.
oangle
Type: SystemInt32
The angle of the outside projection cone.
outvol
Type: SystemInt32
The delta-volume outside the outer projection cone.

Return Value

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

The iangle and oangle parameters must both be retrieved in a single call to this function (ie. you can't retrieve one without the other). See BASS_ChannelSet3DAttributes(Int32, BASS3DMode, Single, Single, Int32, Int32, Int32) for an explanation of the parameters.

This overload uses reference types, so you need to specify all parameters here and therefore can only get the parameters all together. See the other overloads which allows you to retrieve only certain values.

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

Examples

VB
Dim mode As BASS3DMode = BASS3DMode.BASS_3DMODE_NORMAL
Dim min As Single = 0F
Dim max As Single = 0F
Dim iangle As Integer = 0
Dim oangle As Integer = 0
Dim outvol As Integer = 0
Dim ok As Boolean = Bass.BASS_ChannelGet3DAttributes(handle, mode, min, max, iangle, oangle, outvol)
BASS3DMode mode = BASS3DMode.BASS_3DMODE_NORMAL;
float min = 0f;
float max = 0f;
int iangle = 0;
int oangle = 0;
int outvol = 0;
bool ok = Bass.BASS_ChannelGet3DAttributes(handle, ref mode, ref min, ref max, ref iangle, ref oangle, ref outvol);
See Also

Reference