diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2009-08-11 02:05:38 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2009-08-11 02:05:38 +0000 |
commit | 6469926b889f1533134233c63c894ac471f2f53c (patch) | |
tree | b1d0cfce47546917e49dbf4607216770f5bda721 /apps/menus | |
parent | 47a090105adac2c7d63165a28f46126df08ce494 (diff) |
FS#10506. Don't compile various crossfade only functions in pcmbuf.c on low memory targets (mainly AMS) to save memory. Some crossfade related items remain in the code, but they're not worth cluttering the code with ifdefs over. Also, introduce HAVE_CROSSFADE define for neatness.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22248 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/playback_menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/menus/playback_menu.c b/apps/menus/playback_menu.c index e6298b95bb..d7f9aeef56 100644 --- a/apps/menus/playback_menu.c +++ b/apps/menus/playback_menu.c @@ -102,7 +102,7 @@ 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 +#ifdef HAVE_CROSSFADE 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, @@ -187,7 +187,7 @@ MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0, #endif &fade_on_stop, &party_mode, -#if CONFIG_CODEC == SWCODEC && MEMORYSIZE > 2 +#if CONFIG_CODEC == SWCODEC && defined(HAVE_CROSSFADE) &crossfade_settings_menu, &replaygain_settings_menu, &beep, #endif |