summaryrefslogtreecommitdiff
path: root/apps/menus/playback_menu.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-08-01 08:50:44 +0000
committerNils Wallménius <nils@rockbox.org>2007-08-01 08:50:44 +0000
commit0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f (patch)
treed84ec59c3b9fc00ce46329c01a66b8da46b0e204 /apps/menus/playback_menu.c
parent3b3fd4997ee32cf5b0bc7cf07b3ac9a73cbcb388 (diff)
downloadrockbox-0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f.tar.gz
rockbox-0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f.zip
Disable 'Disk spindown' and 'Anti skip buffer' settings and some related stuff for flash storage targets as they make no sense
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14110 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/playback_menu.c')
-rw-r--r--apps/menus/playback_menu.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/menus/playback_menu.c b/apps/menus/playback_menu.c
index 1f6c96e421..c1de862cd0 100644
--- a/apps/menus/playback_menu.c
+++ b/apps/menus/playback_menu.c
@@ -62,6 +62,7 @@ MENUITEM_SETTING(ff_rewind_accel, &global_settings.ff_rewind_accel, NULL);
62MENUITEM_SETTING(ff_rewind_min_step, &global_settings.ff_rewind_min_step, NULL); 62MENUITEM_SETTING(ff_rewind_min_step, &global_settings.ff_rewind_min_step, NULL);
63MAKE_MENU(ff_rewind_settings_menu, ID2P(LANG_WIND_MENU), 0, Icon_NOICON, 63MAKE_MENU(ff_rewind_settings_menu, ID2P(LANG_WIND_MENU), 0, Icon_NOICON,
64 &ff_rewind_min_step, &ff_rewind_accel); 64 &ff_rewind_min_step, &ff_rewind_accel);
65#ifndef HAVE_FLASH_STORAGE
65#if CONFIG_CODEC == SWCODEC 66#if CONFIG_CODEC == SWCODEC
66int buffermargin_callback(int action,const struct menu_item_ex *this_item) 67int buffermargin_callback(int action,const struct menu_item_ex *this_item)
67{ 68{
@@ -79,6 +80,7 @@ int buffermargin_callback(int action,const struct menu_item_ex *this_item)
79#endif 80#endif
80MENUITEM_SETTING(buffer_margin, &global_settings.buffer_margin, 81MENUITEM_SETTING(buffer_margin, &global_settings.buffer_margin,
81 buffermargin_callback); 82 buffermargin_callback);
83#endif /*HAVE_FLASH_STORAGE */
82MENUITEM_SETTING(fade_on_stop, &global_settings.fade_on_stop, NULL); 84MENUITEM_SETTING(fade_on_stop, &global_settings.fade_on_stop, NULL);
83MENUITEM_SETTING(party_mode, &global_settings.party_mode, NULL); 85MENUITEM_SETTING(party_mode, &global_settings.party_mode, NULL);
84 86
@@ -172,8 +174,11 @@ MAKE_MENU(unplug_menu, ID2P(LANG_UNPLUG), 0, Icon_NOICON,
172MAKE_MENU(playback_menu_item,ID2P(LANG_PLAYBACK),0, 174MAKE_MENU(playback_menu_item,ID2P(LANG_PLAYBACK),0,
173 Icon_Playback_menu, 175 Icon_Playback_menu,
174 &shuffle_item, &repeat_mode, &play_selected, 176 &shuffle_item, &repeat_mode, &play_selected,
175 &ff_rewind_settings_menu, 177 &ff_rewind_settings_menu,
176 &buffer_margin, &fade_on_stop, &party_mode, 178#ifndef HAVE_FLASH_STORAGE
179 &buffer_margin,
180#endif
181 &fade_on_stop, &party_mode,
177 182
178#if CONFIG_CODEC == SWCODEC 183#if CONFIG_CODEC == SWCODEC
179 &crossfade_settings_menu, &replaygain_settings_menu, &beep, 184 &crossfade_settings_menu, &replaygain_settings_menu, &beep,