summaryrefslogtreecommitdiff
path: root/apps/playlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.h')
-rw-r--r--apps/playlist.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 47422a40a5..57a23f2a8f 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -36,6 +36,13 @@ struct playlist_info
36 int seed; /* random seed */ 36 int seed; /* random seed */
37 int amount; /* number of tracks in the index */ 37 int amount; /* number of tracks in the index */
38 bool in_ram; /* True if the playlist is RAM-based */ 38 bool in_ram; /* True if the playlist is RAM-based */
39
40 /* Queue function */
41 int queue_indices[MAX_QUEUED_FILES]; /* array of queue indices */
42 int last_queue_index; /* index of last queued track */
43 int queue_index; /* index of current playing queued track */
44 int num_queued; /* number of songs queued */
45 int start_queue; /* the first song was queued */
39}; 46};
40 47
41extern struct playlist_info playlist; 48extern struct playlist_info playlist;
@@ -43,18 +50,23 @@ extern bool playlist_shuffle;
43 50
44int play_list(char *dir, char *file, int start_index, 51int play_list(char *dir, char *file, int start_index,
45 bool shuffled_index, int start_offset, 52 bool shuffled_index, int start_offset,
46 int random_seed, int first_index); 53 int random_seed, int first_index, int queue_resume,
54 int queue_resume_index);
47char* playlist_peek(int steps); 55char* playlist_peek(int steps);
48char* playlist_name(char *name, int name_size); 56char* playlist_name(char *name, int name_size);
49int playlist_next(int steps); 57int playlist_next(int steps);
50void randomise_playlist( unsigned int seed ); 58void randomise_playlist( unsigned int seed );
51void sort_playlist(bool start_current); 59void sort_playlist(bool start_current);
52void empty_playlist(void);
53void add_indices_to_playlist(void); 60void add_indices_to_playlist(void);
54void playlist_clear(void); 61void playlist_clear(void);
55int playlist_add(char *filename); 62int playlist_add(char *filename);
63int queue_add(char *filename);
56int playlist_amount(void); 64int playlist_amount(void);
57int playlist_first_index(void); 65int playlist_first_index(void);
66int playlist_get_resume_info(int *resume_index, int *queue_resume,
67 int *queue_resume_index);
68
69enum { QUEUE_OFF, QUEUE_BEGIN_QUEUE, QUEUE_BEGIN_PLAYLIST, NUM_QUEUE_MODES };
58 70
59#endif /* __PLAYLIST_H__ */ 71#endif /* __PLAYLIST_H__ */
60 72