BASS.NET API for the Un4seen BASS Audio Library

BassBASS_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.17.5
Syntax

[DllImportAttribute("bass")]
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

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