Disable crossfade menu option (but nothing more) on lowmem (<=2MB) targets because it apparently needs a larger PCM buffer then is available.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22247 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4210ff584a
commit
47a090105a
2 changed files with 5 additions and 1 deletions
|
@ -102,10 +102,12 @@ MENUITEM_SETTING(crossfade_fade_out_duration,
|
|||
&global_settings.crossfade_fade_out_duration, setcrossfadeonexit_callback);
|
||||
MENUITEM_SETTING(crossfade_fade_out_mixmode,
|
||||
&global_settings.crossfade_fade_out_mixmode,NULL);
|
||||
#if MEMORYSIZE > 2
|
||||
MAKE_MENU(crossfade_settings_menu,ID2P(LANG_CROSSFADE),0, Icon_NOICON,
|
||||
&crossfade, &crossfade_fade_in_delay, &crossfade_fade_in_duration,
|
||||
&crossfade_fade_out_delay, &crossfade_fade_out_duration,
|
||||
&crossfade_fade_out_mixmode);
|
||||
#endif
|
||||
|
||||
/* replay gain submenu */
|
||||
|
||||
|
@ -185,7 +187,7 @@ MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0,
|
|||
#endif
|
||||
&fade_on_stop, &party_mode,
|
||||
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
#if CONFIG_CODEC == SWCODEC && MEMORYSIZE > 2
|
||||
&crossfade_settings_menu, &replaygain_settings_menu, &beep,
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1129,6 +1129,7 @@ const struct settings_list settings[] = {
|
|||
NULL, 4, ID2P(LANG_OFF), ID2P(LANG_WEAK),
|
||||
ID2P(LANG_MODERATE), ID2P(LANG_STRONG)),
|
||||
|
||||
#if MEMORYSIZE > 2
|
||||
/* crossfade */
|
||||
CHOICE_SETTING(F_SOUNDSETTING, crossfade, LANG_CROSSFADE_ENABLE, 0,
|
||||
"crossfade",
|
||||
|
@ -1153,6 +1154,7 @@ const struct settings_list settings[] = {
|
|||
LANG_CROSSFADE_FADE_OUT_MODE, 0,
|
||||
"crossfade fade out mode", "crossfade,mix", NULL, 2,
|
||||
ID2P(LANG_CROSSFADE), ID2P(LANG_MIX)),
|
||||
#endif
|
||||
|
||||
/* crossfeed */
|
||||
OFFON_SETTING(F_SOUNDSETTING, crossfeed, LANG_CROSSFEED, false,
|
||||
|
|
Loading…
Reference in a new issue