From fd0cc3b2b1302d77f3404861509e75c64fd505af Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 29 Oct 2002 12:09:15 +0000 Subject: Phil Pertermann's dB peak meter patch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2774 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps-display.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'apps/wps-display.h') diff --git a/apps/wps-display.h b/apps/wps-display.h index fc40e19136..cda90ffffe 100644 --- a/apps/wps-display.h +++ b/apps/wps-display.h @@ -22,7 +22,18 @@ #include #include "id3.h" -bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_scroll); +/* constants used in line_type and as refresh_mode for wps_refresh */ +#define WPS_REFRESH_STATIC 1 /* line doesn't change over time */ +#define WPS_REFRESH_DYNAMIC 2 /* line may change (e.g. time flag) */ +#define WPS_REFRESH_SCROLL 4 /* line scrolls */ +#define WPS_REFRESH_PLAYER_PROGRESS 8 /* line contains a progress bar */ +#define WPS_REFRESH_PEAK_METER 16 /* line contains a peak meter */ +#define WPS_REFRESH_ALL 0xff /* to refresh all line types */ +/* to refresh only those lines that change over time */ +#define WPS_REFRESH_NON_STATIC (WPS_REFRESH_ALL & ~WPS_REFRESH_STATIC & ~WPS_REFRESH_SCROLL) + + +bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mode); bool wps_display(struct mp3entry* id3); bool wps_load(char* file, bool display); void wps_reset(void); -- cgit v1.2.3