Add AAC audio type
[Rockbox.git] / apps / wps-display.h
blobb23c0d603d9d4c8b7da89ead387169c278483c6a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 Björn Stenberg
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef WPS_DISPLAY
20 #define WPS_DISPLAY
22 #include <stdbool.h>
23 #include "id3.h"
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)
35 /* alignments */
36 #define WPS_ALIGN_RIGHT 32
37 #define WPS_ALIGN_CENTER 64
38 #define WPS_ALIGN_LEFT 128
41 void wps_format_time(char* buf, int buf_size, long time);
42 bool wps_refresh(struct mp3entry* id3, struct mp3entry* nid3,
43 int ffwd_offset, unsigned char refresh_mode);
44 bool wps_display(struct mp3entry* id3, struct mp3entry* nid3);
45 bool wps_load(const char* file, bool display);
46 void wps_reset(void);
48 #endif