summaryrefslogtreecommitdiffstats
path: root/apps/wps-display.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-29 12:09:15 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-29 12:09:15 +0000
commitfd0cc3b2b1302d77f3404861509e75c64fd505af (patch)
treeacdb25b87a549908424e052c04cc323d02b681f4 /apps/wps-display.h
parent8f11dc00ac1a0a5fe009d1d07d9a1378c3300ba8 (diff)
downloadrockbox-fd0cc3b2b1302d77f3404861509e75c64fd505af.tar.gz
rockbox-fd0cc3b2b1302d77f3404861509e75c64fd505af.tar.bz2
rockbox-fd0cc3b2b1302d77f3404861509e75c64fd505af.zip
Phil Pertermann's dB peak meter patch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2774 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps-display.h')
-rw-r--r--apps/wps-display.h13
1 files changed, 12 insertions, 1 deletions
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 <stdbool.h>
#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);