forked from len0rd/rockbox
Fade out audio on shutdown if enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11256 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
21692bbde4
commit
6938f56093
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,7 @@
|
|||
#include "bmp.h"
|
||||
#include "icons.h"
|
||||
#endif /* End HAVE_LCD_BITMAP */
|
||||
#include "gui/gwps-common.h"
|
||||
|
||||
/* Format a large-range value for output, using the appropriate unit so that
|
||||
* 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)
|
|||
|
||||
gui_syncsplash(0, true, str(LANG_SHUTTINGDOWN));
|
||||
|
||||
if (global_settings.fade_on_stop)
|
||||
fade(0);
|
||||
|
||||
audio_stop();
|
||||
while (audio_status())
|
||||
sleep(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue