BASS_ChannelGetLevel()

Started by Igor,

Igor

The BASS_ChannelGetLevel() returns a number between 0 and 128
 Is there a way to convert this number to dB?

The_TriggerZone1

If seen some programs define the level 100 to be 0dB. But in my opiniun this is wrong becuase the dB is something that changes when you turn the volume of your sound card/stereo up.

Some also define the maximum as 0dB.

And BTW these values can also be seen as an offset of the real dB values outputted by your soundcard/stereo.

Hope this helps a bit.

Greetings me.

engineeer

dB = 20 x log (V1/V2)

In this case:
dB = 20 x log (Volume/128)