1
0
Fork 0
forked from len0rd/rockbox

HAVE_CROSSFADE defs: fix yellow and red

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23598 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jeffrey Goode 2009-11-10 04:21:40 +00:00
parent 9e0953432a
commit dd93ef41bb
2 changed files with 6 additions and 0 deletions

View file

@ -766,10 +766,14 @@ const char *get_token_value(struct gui_wps *gwps,
#if (CONFIG_CODEC == SWCODEC)
case WPS_TOKEN_CROSSFADE:
#ifdef HAVE_CROSSFADE
if (intval)
*intval = global_settings.crossfade + 1;
snprintf(buf, buf_size, "%d", global_settings.crossfade);
return buf;
#else
return NULL;
#endif
case WPS_TOKEN_REPLAYGAIN:
{

View file

@ -534,6 +534,8 @@ static void start_processed_track_change(bool auto_skip)
crossfade_mixmode = auto_skip && global_settings.crossfade_fade_out_mixmode;
crossfade_track_change_started = true;
#else
(void)auto_skip;
#endif
}