BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_Get3DFactors Method (Object, Object, Object)BASS.NET API for the Un4seen BASS Audio Library
Retrieves the factors that affect the calculations of 3D sound.

This overload uses objects (so you can pass in order to NOT retrieve a value). However a requested return value needs to be casted back into a float after getting it.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static bool BASS_Get3DFactors(
	Object distf,
	Object rollf,
	Object doppf


Type: SystemObject
The distance factor... = don't retrieve it.
Type: SystemObject
The rolloff factor... = don't retrieve it.
Type: SystemObject
The doppler factor... = don't retrieve it.

Return Value

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

When using multiple devices, the current thread's device setting (as set with BASS_SetDevice(Int32)) determines which device this function call applies to.

ERROR CODEDescription
BASS_ERROR_INITBASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) has not been successfully called.
BASS_ERROR_NO3DThe device was not initialized with 3D support.


Only get the distance factor:
Dim distf As Object = 0F
Bass.BASS_Get3DFactors(distf, Nothing, Nothing)
Dim distanceFactor As Single = CSng(distf)
object distf = 0f;
Bass.BASS_Get3DFactors(distf, null, null);
float distanceFactor = (float)distf;
See Also