4 #define SETTINGS_VERSION 4
5 #define SETTINGS_MIN_VERSION 1
6 #define SETTINGS_FILENAME "mpegplayer.cfg"
8 #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \
9 || defined (IRIVER_H10)
10 #define MPEG_OPTION_DITHERING_ENABLED 1
13 #ifndef MPEG_OPTION_DITHERING_ENABLED
14 #define MPEG_OPTION_DITHERING_ENABLED 0
19 #if MPEG_OPTION_DITHERING_ENABLED
20 MPEG_OPTION_DITHERING
,
22 MPEG_OPTION_DISPLAY_FPS
,
23 MPEG_OPTION_LIMIT_FPS
,
24 MPEG_OPTION_SKIP_FRAMES
,
27 enum mpeg_audio_option_id
29 MPEG_AUDIO_TONE_CONTROLS
,
30 MPEG_AUDIO_CHANNEL_MODES
,
38 MPEG_RESUME_MENU_ALWAYS
= 0,
39 MPEG_RESUME_MENU_IF_INCOMPLETE
,
42 MPEG_RESUME_NUM_OPTIONS
,
57 MPEG_MENU_DISPLAY_SETTINGS
,
58 MPEG_MENU_AUDIO_SETTINGS
,
59 MPEG_MENU_ENABLE_START_MENU
,
60 MPEG_MENU_CLEAR_RESUMES
,
64 struct mpeg_settings
{
65 int showfps
; /* flag to display fps */
66 int limitfps
; /* flag to limit fps */
67 int skipframes
; /* flag to skip frames */
68 int resume_options
; /* type of resume action at start */
69 int resume_count
; /* total # of resumes in config file */
70 int resume_time
; /* resume time for current mpeg (in half minutes) */
71 char resume_filename
[MAX_PATH
]; /* filename of current mpeg */
72 #if MPEG_OPTION_DITHERING_ENABLED
75 /* Audio options - simple on/off specification */
83 extern struct mpeg_settings settings
;
85 int mpeg_start_menu(uint32_t duration
);
89 MPEG_MENU_HIDE_QUIT_ITEM
= 0x1, /* Don't show the quit item */
92 int mpeg_menu(unsigned flags
);
93 void mpeg_menu_sysevent_clear(void);
94 long mpeg_menu_sysevent(void);
95 int mpeg_menu_sysevent_callback(int btn
, int menu
);
96 void mpeg_menu_sysevent_handle(void);
98 void init_settings(const char* filename
);
99 void save_settings(void);