X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vu_common.h;h=602de8b8c59452a3cc743e0b41798d9e03e5090c;hb=d3e48df512d9476d3849227067792a3537bb094e;hp=06a971f409fb9f4e3ac3c1cbe4c66bf049ac0e04;hpb=fdd77c1f8a51f1e87151b876c2c5ab536a2fb02d;p=nageru diff --git a/vu_common.h b/vu_common.h index 06a971f..602de8b 100644 --- a/vu_common.h +++ b/vu_common.h @@ -1,9 +1,10 @@ #ifndef _VU_COMMON_H #define _VU_COMMON_H 1 -#include +class QPainter; -int lufs_to_pos(float level_lu, int height); -void draw_vu_meter(QPainter &painter, float range_low_lu, float range_high_lu, int width, int height, int margin); +double lufs_to_pos(float level_lu, int height, float min_level, float max_level); + +void draw_vu_meter(QPainter &painter, int width, int height, int horizontal_margin, double segment_margin, bool is_on, float min_level, float max_level, bool flip, int y_offset = 0); #endif // !defined(_VU_COMMON_H)