Is it possible to calculate the decibel value from the sound volume level?
Suppose a sound is playing, (it could be any track, but I'm using a generated sound with AudioTrack). While the sound is playing, the volume of the sound is increased from 0 (mute) to 99 (maximum).
Now I want to retrieve the decibel value, when the volume level is 50, for example.
Is it possible?
I found how to calculate decibel value in this thread: Calculate Decibel from amplitude - Android media recorder
power_db = 20 * log10(amp / amp_ref);
but here it uses the amplitude, not sound volume.