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

This overload allows you to only get all three values at a time.

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_Get3DFactors(
	ref float distf,
	ref float rollf,
	ref float doppf
)

Parameters

distf
Type: SystemSingle
The distance factor.
rollf
Type: SystemSingle
The rolloff factor.
doppf
Type: SystemSingle
The doppler factor.

Return Value

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

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.

Examples

VB
Dim distf As Single = 0F
Dim rollf As Single = 0F
Dim doppf As Single = 0F
Bass.BASS_Get3DFactors(distf, rollf, doppf)
float distf = 0f;
float rollf = 0f;
float doppf = 0f;
Bass.BASS_Get3DFactors(ref distf, ref rollf, ref doppf);
See Also

Reference