X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vu_common.h;h=9c7098e619edc4aa9582735cec3fc186363648c1;hb=54067dbc70999d936adf9d263b5ff2b1efb4dfd0;hp=aa577214b191287b0c0d032a335d005c63bf8fe6;hpb=3376a2309e8b682f8e8d0a96bbda9ccaa19c53c0;p=nageru diff --git a/vu_common.h b/vu_common.h index aa57721..9c7098e 100644 --- a/vu_common.h +++ b/vu_common.h @@ -3,10 +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); -// TODO: Now that we precalculate these as pixmaps, perhaps we don't need the -// high/low range anymore, just a yes/no. -void draw_vu_meter(QPainter &painter, float range_low_lu, float range_high_lu, int width, int height, int margin); +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)