1
0
Fork 0
forked from len0rd/rockbox

fix FS#9098 - fade was updating the WPS sometimes when it shouldnt. also minor code policing.. use true/false instead of 1/0 for calls to fade()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17757 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-06-23 02:45:55 +00:00
parent 0ac9839ffc
commit 4982b87b9c
4 changed files with 14 additions and 12 deletions

View file

@ -697,7 +697,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
if (global_settings.fade_on_stop
&& (audio_stat & AUDIO_STATUS_PLAY))
{
fade(0);
fade(false, false);
}
if (batt_safe) /* do not save on critical battery */
@ -774,7 +774,7 @@ bool list_stop_handler(void)
if (!global_settings.party_mode)
{
if (global_settings.fade_on_stop)
fade(0);
fade(false, false);
bookmark_autobookmark();
audio_stop();
ret = true; /* bookmarking can make a refresh necessary */
@ -840,7 +840,7 @@ static void car_adapter_mode_processing(bool inserted)
!(audio_status() & AUDIO_STATUS_PAUSE))
{
if (global_settings.fade_on_stop)
fade(0);
fade(false, false);
else
audio_pause();
}