Introduce an accurate version of coefficient_to_dB and use it in non speed-critical

code.  Fixes mantis 2833.


git-svn-id: svn://localhost/ardour2/branches/3.0@5565 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-08-22 10:21:39 +00:00
parent 4f3bddf7ef
commit 970a3a7292
8 changed files with 19 additions and 17 deletions

View file

@ -803,7 +803,7 @@ public:
if (val == 0.0) {
snprintf (buf, sizeof (buf), "-inf");
} else {
snprintf (buf, sizeof (buf), "%.2f", coefficient_to_dB (val));
snprintf (buf, sizeof (buf), "%.2f", accurate_coefficient_to_dB (val));
}
_db_display.set_text (buf);