1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-10 05:30:01 +01:00

Added dB - linear amplitude conversion macros.

This commit is contained in:
Steve Daulton
2015-07-24 21:59:34 +01:00
parent da060228eb
commit df8ddde874
16 changed files with 58 additions and 58 deletions

View File

@@ -112,7 +112,7 @@ float ContrastDialog::GetDB()
{
if( rms < 1.0E-30 )
return -60.0;
return 20.0*log10(rms);
return LINEAR_TO_DB(rms);
}
else
{