X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vu_common.h;h=9c7098e619edc4aa9582735cec3fc186363648c1;hb=54067dbc70999d936adf9d263b5ff2b1efb4dfd0;hp=5df149ef94ea4cc3dfcdcfcf9f218fa72a0f4157;hpb=82e711de31a86ce697ebe80720f92db748272d62;p=nageru diff --git a/vu_common.h b/vu_common.h index 5df149e..9c7098e 100644 --- a/vu_common.h +++ b/vu_common.h @@ -3,8 +3,8 @@ #include -int lufs_to_pos(float level_lu, int height); +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 margin, bool is_on); +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); #endif // !defined(_VU_COMMON_H)