forked from len0rd/rockbox
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
This commit is contained in:
parent
47a090105a
commit
6469926b88
4 changed files with 20 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue