BASS.NET API for the Un4seen BASS Audio LibraryBASS_BFX_DAMPfTarget FieldBASS.NET API for the Un4seen BASS Audio Library
Target volume level (0<...1, linear). Default = 1.0 (0dB).

Namespace: Un4seen.Bass.AddOn.Fx
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public float fTarget

Field Value

Type: Single
Remarks

Examples: 0.0 = -unlimited dB, 0.5 = -6dB, 1.0 = 0dB

To convert a dB value to a 0-1 linear value, you can do this:

double linear = Math.Pow(10d, dB / 20.0);

To convert a linear value to a dB value, you can do this:

double dB = 20.0 * Math.Log10(level / 1.0);

Or use the LevelToDB(Int32, Int32) or DBToLevel(Double, Int32) methods.
See Also

Reference