summaryrefslogtreecommitdiff
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.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 @@
22#include <stdbool.h> 22#include <stdbool.h>
23#include "id3.h" 23#include "id3.h"
24 24
25bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_scroll); 25/* constants used in line_type and as refresh_mode for wps_refresh */
26#define WPS_REFRESH_STATIC 1 /* line doesn't change over time */
27#define WPS_REFRESH_DYNAMIC 2 /* line may change (e.g. time flag) */
28#define WPS_REFRESH_SCROLL 4 /* line scrolls */
29#define WPS_REFRESH_PLAYER_PROGRESS 8 /* line contains a progress bar */
30#define WPS_REFRESH_PEAK_METER 16 /* line contains a peak meter */
31#define WPS_REFRESH_ALL 0xff /* to refresh all line types */
32/* to refresh only those lines that change over time */
33#define WPS_REFRESH_NON_STATIC (WPS_REFRESH_ALL & ~WPS_REFRESH_STATIC & ~WPS_REFRESH_SCROLL)
34
35
36bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mode);
26bool wps_display(struct mp3entry* id3); 37bool wps_display(struct mp3entry* id3);
27bool wps_load(char* file, bool display); 38bool wps_load(char* file, bool display);
28void wps_reset(void); 39void wps_reset(void);