summaryrefslogtreecommitdiff
path: root/apps/playlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.h')
-rw-r--r--apps/playlist.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index a18240db7f..9f66b7f49e 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -28,10 +28,11 @@
28 28
29struct playlist_info 29struct playlist_info
30{ 30{
31 char filename[MAX_PATH]; /* path name of m3u playlist on disk */ 31 char filename[MAX_PATH]; /* path name of m3u playlist on disk */
32 int dirlen; /* Length of the path to the playlist file */ 32 int dirlen; /* Length of the path to the playlist file */
33 int indices[MAX_PLAYLIST_SIZE]; /* array of indices */ 33 int indices[MAX_PLAYLIST_SIZE]; /* array of indices */
34 int index; /* index of *NEXT* track to play */ 34 int index; /* index of current playing track */
35 int first_index; /* index of first song in playlist */
35 int seed; /* random seed */ 36 int seed; /* random seed */
36 int amount; /* number of tracks in the index */ 37 int amount; /* number of tracks in the index */
37 bool in_ram; /* True if the playlist is RAM-based */ 38 bool in_ram; /* True if the playlist is RAM-based */
@@ -41,7 +42,8 @@ extern struct playlist_info playlist;
41extern bool playlist_shuffle; 42extern bool playlist_shuffle;
42 43
43int play_list(char *dir, char *file, int start_index, 44int play_list(char *dir, char *file, int start_index,
44 bool shuffled_index, int start_offset, int random_seed ); 45 bool shuffled_index, int start_offset,
46 int random_seed, int first_index);
45char* playlist_peek(int steps); 47char* playlist_peek(int steps);
46int playlist_next(int steps); 48int playlist_next(int steps);
47void randomise_playlist( unsigned int seed ); 49void randomise_playlist( unsigned int seed );