summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpeg_settings.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-02-01 02:25:15 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-02-01 02:25:15 +0000
commitf90cbcb652af3bf794ec61d7f7ec3de00c8b7cb2 (patch)
tree62c13ffdeb5112181897103a6a015cfc1fab98ae /apps/plugins/mpegplayer/mpeg_settings.h
parent7e402d8202af409a0ea8f3f2676a2e6f501af05b (diff)
downloadrockbox-f90cbcb652af3bf794ec61d7f7ec3de00c8b7cb2.tar.gz
rockbox-f90cbcb652af3bf794ec61d7f7ec3de00c8b7cb2.zip
mpegplayer: Use the core DSP to process audio. Removes the sample rate restriction on audio and any mpeg audio samplerate may be used. Use the global sound settings for audio output with the option to force any one of the processing stages off. All are forced off by default. I didn't personally care to fully duplicate the Sound Settings menu which would have been needed since using the core one would affect settings globally and exactly the same configuration probably isn't desired since the CPU load for video playback is much greater. Rebalance the threading to compensate with some expense to buffering speed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16194 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.h')
-rw-r--r--apps/plugins/mpegplayer/mpeg_settings.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.h b/apps/plugins/mpegplayer/mpeg_settings.h
index 4d6da478ea..1557ff433e 100644
--- a/apps/plugins/mpegplayer/mpeg_settings.h
+++ b/apps/plugins/mpegplayer/mpeg_settings.h
@@ -1,7 +1,7 @@
1 1
2#include "plugin.h" 2#include "plugin.h"
3 3
4#define SETTINGS_VERSION 3 4#define SETTINGS_VERSION 4
5#define SETTINGS_MIN_VERSION 1 5#define SETTINGS_MIN_VERSION 1
6#define SETTINGS_FILENAME "mpegplayer.cfg" 6#define SETTINGS_FILENAME "mpegplayer.cfg"
7 7
@@ -24,6 +24,15 @@ enum mpeg_option_id
24 MPEG_OPTION_SKIP_FRAMES, 24 MPEG_OPTION_SKIP_FRAMES,
25}; 25};
26 26
27enum mpeg_audio_option_id
28{
29 MPEG_AUDIO_TONE_CONTROLS,
30 MPEG_AUDIO_CHANNEL_MODES,
31 MPEG_AUDIO_CROSSFEED,
32 MPEG_AUDIO_EQUALIZER,
33 MPEG_AUDIO_DITHERING,
34};
35
27enum mpeg_resume_id 36enum mpeg_resume_id
28{ 37{
29 MPEG_RESUME_MENU_ALWAYS = 0, 38 MPEG_RESUME_MENU_ALWAYS = 0,
@@ -46,6 +55,7 @@ enum mpeg_start_id
46enum mpeg_menu_id 55enum mpeg_menu_id
47{ 56{
48 MPEG_MENU_DISPLAY_SETTINGS, 57 MPEG_MENU_DISPLAY_SETTINGS,
58 MPEG_MENU_AUDIO_SETTINGS,
49 MPEG_MENU_ENABLE_START_MENU, 59 MPEG_MENU_ENABLE_START_MENU,
50 MPEG_MENU_CLEAR_RESUMES, 60 MPEG_MENU_CLEAR_RESUMES,
51 MPEG_MENU_QUIT, 61 MPEG_MENU_QUIT,
@@ -62,6 +72,12 @@ struct mpeg_settings {
62#if MPEG_OPTION_DITHERING_ENABLED 72#if MPEG_OPTION_DITHERING_ENABLED
63 int displayoptions; 73 int displayoptions;
64#endif 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;
65}; 81};
66 82
67extern struct mpeg_settings settings; 83extern struct mpeg_settings settings;