BASS.NET API for the Un4seen BASS Audio Library

UtilsLevelToDB Method (Double, Double)

BASS.NET API for the Un4seen BASS Audio Library
Converts any level value to its dB value.

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

public static double LevelToDB(
	double level,
	double maxLevel
)

Parameters

level
Type: SystemDouble
The level to convert, as a double value.
maxLevel
Type: SystemDouble
The maximum value allowed as a double level value (e.g. use 32768.0 for 16-bit stream levels or use 1.0 for 32-bit floating streams).

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