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
|
|
@ -646,15 +646,15 @@ gnome_canvas_waveview_ensure_cache (GnomeCanvasWaveView *waveview, gulong start_
|
|||
for (n = 0; n < cache->data_size; ++n) {
|
||||
|
||||
if (buf[n].max > 0.0f) {
|
||||
buf[n].max = alt_log_meter(coefficient_to_dB(buf[n].max));
|
||||
buf[n].max = alt_log_meter(fast_coefficient_to_dB(buf[n].max));
|
||||
} else if (buf[n].max < 0.0f) {
|
||||
buf[n].max = -alt_log_meter(coefficient_to_dB(-buf[n].max));
|
||||
buf[n].max = -alt_log_meter(fast_coefficient_to_dB(-buf[n].max));
|
||||
}
|
||||
|
||||
if (buf[n].min > 0.0f) {
|
||||
buf[n].min = alt_log_meter(coefficient_to_dB(buf[n].min));
|
||||
buf[n].min = alt_log_meter(fast_coefficient_to_dB(buf[n].min));
|
||||
} else if (buf[n].min < 0.0f) {
|
||||
buf[n].min = -alt_log_meter(coefficient_to_dB(-buf[n].min));
|
||||
buf[n].min = -alt_log_meter(fast_coefficient_to_dB(-buf[n].min));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue