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

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

public static double LevelToDB(
	int level,
	int maxLevel
)

Parameters

level
Type: SystemInt32
The integer 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: Double
The dB value (from 0dB to -infinite).
Remarks

If you pass a level greater than maxLevel positive dB values will be returned.
See Also

Reference