mpegplayer: Use the core DSP to process audio. Removes the sample rate restriction...
[kugel-rb.git] / apps / plugins / mpegplayer / mpeg_settings.h
blob1557ff433e412cb98758dced6dab0b5a92742a87
2 #include "plugin.h"
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
11 #endif
13 #ifndef MPEG_OPTION_DITHERING_ENABLED
14 #define MPEG_OPTION_DITHERING_ENABLED 0
15 #endif
17 enum mpeg_option_id
19 #if MPEG_OPTION_DITHERING_ENABLED
20 MPEG_OPTION_DITHERING,
21 #endif
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,
31 MPEG_AUDIO_CROSSFEED,
32 MPEG_AUDIO_EQUALIZER,
33 MPEG_AUDIO_DITHERING,
36 enum mpeg_resume_id
38 MPEG_RESUME_MENU_ALWAYS = 0,
39 MPEG_RESUME_MENU_IF_INCOMPLETE,
40 MPEG_RESUME_RESTART,
41 MPEG_RESUME_ALWAYS,
42 MPEG_RESUME_NUM_OPTIONS,
45 enum mpeg_start_id
47 MPEG_START_RESTART,
48 MPEG_START_RESUME,
49 MPEG_START_SEEK,
50 MPEG_START_SETTINGS,
51 MPEG_START_QUIT,
52 MPEG_START_EXIT,
55 enum mpeg_menu_id
57 MPEG_MENU_DISPLAY_SETTINGS,
58 MPEG_MENU_AUDIO_SETTINGS,
59 MPEG_MENU_ENABLE_START_MENU,
60 MPEG_MENU_CLEAR_RESUMES,
61 MPEG_MENU_QUIT,
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
73 int displayoptions;
74 #endif
75 /* Audio options - simple on/off specification */
76 int tone_controls;
77 int channel_modes;
78 int crossfeed;
79 int equalizer;
80 int dithering;
83 extern struct mpeg_settings settings;
85 int mpeg_start_menu(uint32_t duration);
87 enum
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);