diff options
Diffstat (limited to 'apps/playlist.h')
-rw-r--r-- | apps/playlist.h | 16 |
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 | ||
41 | extern struct playlist_info playlist; | 48 | extern struct playlist_info playlist; |
@@ -43,18 +50,23 @@ extern bool playlist_shuffle; | |||
43 | 50 | ||
44 | int play_list(char *dir, char *file, int start_index, | 51 | int 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); | ||
47 | char* playlist_peek(int steps); | 55 | char* playlist_peek(int steps); |
48 | char* playlist_name(char *name, int name_size); | 56 | char* playlist_name(char *name, int name_size); |
49 | int playlist_next(int steps); | 57 | int playlist_next(int steps); |
50 | void randomise_playlist( unsigned int seed ); | 58 | void randomise_playlist( unsigned int seed ); |
51 | void sort_playlist(bool start_current); | 59 | void sort_playlist(bool start_current); |
52 | void empty_playlist(void); | ||
53 | void add_indices_to_playlist(void); | 60 | void add_indices_to_playlist(void); |
54 | void playlist_clear(void); | 61 | void playlist_clear(void); |
55 | int playlist_add(char *filename); | 62 | int playlist_add(char *filename); |
63 | int queue_add(char *filename); | ||
56 | int playlist_amount(void); | 64 | int playlist_amount(void); |
57 | int playlist_first_index(void); | 65 | int playlist_first_index(void); |
66 | int playlist_get_resume_info(int *resume_index, int *queue_resume, | ||
67 | int *queue_resume_index); | ||
68 | |||
69 | enum { QUEUE_OFF, QUEUE_BEGIN_QUEUE, QUEUE_BEGIN_PLAYLIST, NUM_QUEUE_MODES }; | ||
58 | 70 | ||
59 | #endif /* __PLAYLIST_H__ */ | 71 | #endif /* __PLAYLIST_H__ */ |
60 | 72 | ||