summaryrefslogtreecommitdiff
path: root/plugingui/humaniservisualiser.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-07-21 14:35:36 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2018-07-21 14:35:36 +0200
commit6ba96e9a60428676fdf5cf6060e5d981ba1f3976 (patch)
treeadade5a7befd072b42c9d1738bcfb1a702f7954f /plugingui/humaniservisualiser.cc
parent94e8431f321a359743d0663f50d5e9a53155dd9d (diff)
Switch latency_stddev to be samplerate independent (and thus in ms).
Visualization seems correct but I didn't verify the math.
Diffstat (limited to 'plugingui/humaniservisualiser.cc')
-rw-r--r--plugingui/humaniservisualiser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/humaniservisualiser.cc b/plugingui/humaniservisualiser.cc
index fd643d4..f0c016a 100644
--- a/plugingui/humaniservisualiser.cc
+++ b/plugingui/humaniservisualiser.cc
@@ -105,7 +105,7 @@ void HumaniserVisualiser::Canvas::repaintEvent(GUI::RepaintEvent *repaintEvent)
float v = (-1.0f * velocity_offset + 1.0f) * 0.8;
int y = height() * 0.2 + v * height();
y = std::max(0, y);
- int w = latency_stddev / spx * 3 * 2; // stddev is ~ +/- 3 span
+ int w = 50.f * latency_stddev / spx * 3 * 2; // stddev is ~ +/- 3 span
int h = velocity_stddev * height() / 4;
DEBUG(vis, "max: %d, spx: %d, x: %d, w: %d", latency_max_samples, spx, x, w);