[DUG] linear audio volume to db conversion
Mark Howard
mhoward at pslog.co.nz
Sun Jun 19 08:46:58 NZST 2005
Ross
I seem to recall that a doubling of sound pressure equates to an increase of 3 dB.
ie 103 dB is twice the sound pressure of 100 dB.
HTH
Mark
On Sun, 19 Jun 2005 00:25:31 +1200, Ross Levis <ross at stationplaylist.com> wrote:
> I was never any good at logarithms.
>
> I need to convert a linear audio volume to decibels. The values start at 0 being silence and 127 being maximum. This needs to be translated to db starting at 0db being maximum volume, and going negative to like -20db being a low volume. This will be a VU meter. I'm sure I need to use the Log10 math function, but I'm lost.
>
> Many thanks,
> Ross.
>
--
Forest Production Systems Ltd
Creators of PSLog - A harvesting information system
www.pslog.co.nz
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.7.8/22 - Release Date: 17/06/2005
More information about the Delphi
mailing list