Datasheet
HH
VS1053B OGG VORBIS ENCODER VSMPG
2.4.4 Converting from Linear to Decibel Scale
To convert from linear to dB scale, use the formula
dB = 20 × log
10
(
m
32768
) + 96
where dB is the result and m is a value returned by the Recording Level Meter.
To implement a good approximation of this formula from linear to dB scale on architec-
tures where multiplications and logarithms are expensive operations, the following code
can be used:
Rev. 1.70c 2012-11-16
Page 16(39)