summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 942a5785b1..f1bcfaa6e9 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -31,6 +31,7 @@
31#include "kernel.h" 31#include "kernel.h"
32 32
33playlist_info_t playlist; 33playlist_info_t playlist;
34bool playlist_shuffle = false;
34 35
35char now_playing[256]; 36char now_playing[256];
36 37
@@ -101,9 +102,13 @@ void play_list(char *dir, char *file)
101 /* add track indices to playlist data structure */ 102 /* add track indices to playlist data structure */
102 add_indices_to_playlist(&playlist); 103 add_indices_to_playlist(&playlist);
103 104
104 /* if shuffle is wanted, this is where to do that */ 105 if(playlist_shuffle) {
106 lcd_puts(0,0,"Shuffling...");
107 lcd_update();
108 randomise_playlist( &playlist, current_tick );
109 }
105 110
106 lcd_puts(0,0,"Complete. "); 111 lcd_puts(0,0,"Playing... ");
107 lcd_update(); 112 lcd_update();
108 /* also make the first song get playing */ 113 /* also make the first song get playing */
109 mpeg_play(playlist_next(0)); 114 mpeg_play(playlist_next(0));