BASS.NET API for the Un4seen BASS Audio LibraryUtilsDBToLevel Method (Double, Int32)BASS.NET API for the Un4seen BASS Audio Library
Converts any dB level value to its level value (integer).

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

public static int DBToLevel(
	double dB,
	int maxLevel
)

Parameters

dB
Type: SystemDouble
The dB level to convert.
maxLevel
Type: SystemInt32
The maximum value allowed as an integer level value (e.g. use 32768 for stream levels)

Return Value

Type: Int32
The integer level value (from 0 to maxLevel).
Remarks

If you pass a positive dB value then the return value will be greater than maxLevel.
See Also

Reference