diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-10-18 12:54:23 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-10-18 12:54:23 +0000 |
commit | 6938f560938dcd29e80c8dad5f1df5d7db0bfdc6 (patch) | |
tree | 9ba38e69e5f145b4c077a11618f73c013690bca3 /apps/misc.c | |
parent | 21692bbde49899946ff2fda42850d74a9166dc7a (diff) | |
download | rockbox-6938f560938dcd29e80c8dad5f1df5d7db0bfdc6.tar.gz rockbox-6938f560938dcd29e80c8dad5f1df5d7db0bfdc6.zip |
Fade out audio on shutdown if enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11256 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c index 549187dd11..65d78beaeb 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -55,6 +55,7 @@ | |||
55 | #include "bmp.h" | 55 | #include "bmp.h" |
56 | #include "icons.h" | 56 | #include "icons.h" |
57 | #endif /* End HAVE_LCD_BITMAP */ | 57 | #endif /* End HAVE_LCD_BITMAP */ |
58 | #include "gui/gwps-common.h" | ||
58 | 59 | ||
59 | /* Format a large-range value for output, using the appropriate unit so that | 60 | /* Format a large-range value for output, using the appropriate unit so that |
60 | * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" | 61 | * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" |
@@ -503,6 +504,9 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) | |||
503 | 504 | ||
504 | gui_syncsplash(0, true, str(LANG_SHUTTINGDOWN)); | 505 | gui_syncsplash(0, true, str(LANG_SHUTTINGDOWN)); |
505 | 506 | ||
507 | if (global_settings.fade_on_stop) | ||
508 | fade(0); | ||
509 | |||
506 | audio_stop(); | 510 | audio_stop(); |
507 | while (audio_status()) | 511 | while (audio_status()) |
508 | sleep(1); | 512 | sleep(1); |