mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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:
parent
4f3bddf7ef
commit
970a3a7292
8 changed files with 19 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue