Fix HAVE_CROSSFADE definition in config to apply only to swcodec targets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23620 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jeffrey Goode 2009-11-12 05:04:23 +00:00
parent 3a17bb9092
commit b8793f85a5
2 changed files with 6 additions and 6 deletions

View file

@ -367,7 +367,7 @@ static int talk_callback(int action,const struct menu_item_ex *this_item)
oldval = global_settings.talk_file_clip;
break;
case ACTION_EXIT_MENUITEM:
#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_CROSSFADE)
#ifdef HAVE_CROSSFADE
audio_set_crossfade(global_settings.crossfade);
#endif
if (this_item == &talk_dir_clip_item)

View file

@ -138,11 +138,6 @@
* for example in hardware, but not controllable*/
#define BACKLIGHT_FADING_TARGET 0x8
/*include support for crossfading - requires significant PCM buffer space*/
#if MEMORYSIZE > 2
#define HAVE_CROSSFADE
#endif
/* CONFIG_CHARGING */
/* Generic types */
@ -678,6 +673,11 @@ Lyre prototype 1 */
#define HAVE_WAKEUP_OBJECTS
#endif
/*include support for crossfading - requires significant PCM buffer space*/
#if MEMORYSIZE > 2
#define HAVE_CROSSFADE
#endif
#endif /* (CONFIG_CODEC == SWCODEC) */
/* Determine if accesses should be strictly long aligned. */