]> git.sesse.net Git - nageru/blob - vu_common.h
Precalculate the VU/LRA meter images as pixmaps, since the painting is so slow.
[nageru] / vu_common.h
1 #ifndef _VU_COMMON_H
2 #define _VU_COMMON_H 1
3
4 #include <QPainter>
5
6 int lufs_to_pos(float level_lu, int height);
7
8 // TODO: Now that we precalculate these as pixmaps, perhaps we don't need the
9 // high/low range anymore, just a yes/no.
10 void draw_vu_meter(QPainter &painter, float range_low_lu, float range_high_lu, int width, int height, int margin);
11
12 #endif // !defined(_VU_COMMON_H)