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: BooleanIf succesful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
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 CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_NO3D | The 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