X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vu_common.h;h=f065fcfb2b20302cfdb610223ce8c8580bb601c8;hb=bf8537f35000b8385ae806c15d8524c20f9c6fda;hp=aa577214b191287b0c0d032a335d005c63bf8fe6;hpb=3376a2309e8b682f8e8d0a96bbda9ccaa19c53c0;p=nageru diff --git a/vu_common.h b/vu_common.h index aa57721..f065fcf 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 margin, bool is_on, float min_level, float max_level); #endif // !defined(_VU_COMMON_H)