BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_SetEAXParameters Method (EAXEnvironment, Single, Single, Single)BASS.NET API for the Un4seen BASS Audio Library
Sets the type of EAX environment and it's parameters.

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

[DllImportAttribute("bass")]
public static bool BASS_SetEAXParameters(
	EAXEnvironment env,
	float vol,
	float decay,
	float damp
)

Parameters

env
Type: Un4seen.BassEAXEnvironment
The EAX environment... -1 = leave current, or one of the these EAXEnvironment.
vol
Type: SystemSingle
The volume of the reverb... 0.0 (off) - 1.0 (max), less than 0.0 = leave current.
decay
Type: SystemSingle
The time in seconds it takes the reverb to diminish by 60dB... 0.1 (min) - 20.0 (max), less than 0.0 = leave current.
damp
Type: SystemSingle
The damping, high or low frequencies decay faster... 0.0 = high decays quickest, 1.0 = low/high decay equally, 2.0 = low decays quickest, less than 0.0 = leave current.

Return Value

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

Obviously, EAX functions have no effect if no EAX supporting device is used. You can use BASS_GetInfo(BASS_INFO) to check if the current device suports EAX. EAX only affects 3D channels, but EAX functions do NOT require BASS_Apply3D to apply the changes.

Presets are provided for all the EAX environments. To use a preset, simply call BASS_SetEAXParameters(EAXEnvironment, Single, Single, Single), with the 'preset' overload set to one of these EAXPreset values.

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_NOEAXThe current device does not support EAX.

Platform-specific

This function is only available on Windows.

Examples

Leave the currect environment and damping, but set the volume and decay duration:
VB
Bass.BASS_SetEAXParameters( EAXEnvironment.EAX_ENVIRONMENT_LEAVECURRENT, 0.3F, 1F, -1F )
Bass.BASS_SetEAXParameters( EAXEnvironment.EAX_ENVIRONMENT_LEAVECURRENT, 0.3f, 1f, -1f );
See Also

Reference