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, Object mode, Object min, Object max, Object iangle, Object oangle, Object outvol )
Parameters
- handle
- Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM. - mode
- Type: SystemObject
The 3D processing mode (see BASS3DMode)... = don't retrieve it. (int) - min
- Type: SystemObject
The minimum distance... = don't retrieve it. (float) - max
- Type: SystemObject
The maximum distance... = don't retrieve it. (float) - iangle
- Type: SystemObject
The angle of the inside projection cone... = don't retrieve it. (int) - oangle
- Type: SystemObject
The angle of the outside projection cone... = don't retrieve it. (int) - outvol
- Type: SystemObject
The delta-volume outside the outer projection cone... = don't retrieve it. (int)
Return Value
Type: BooleanIf succesful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
This overload uses native object, so you can specify for some or all parameters in order to not retrieve them. However, the return values of these parameters must be casted back to it's original type.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_NO3D | The channel does not have 3D functionality. |
Examples
object outvol = 0; bool ok = Bass.BASS_ChannelGet3DAttributes(handle, null, null, null, null, null, outvol); // cast the outvol back it it's normal value type (int) int deltaVol = (int)outvol;
See Also