summaryrefslogtreecommitdiff
path: root/apps/playlist.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-01-09 00:55:00 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-01-09 00:55:00 +0000
commitc78e1b07fead2b5861fb6fc4c9ba130660fb323f (patch)
tree267406ed9e1e3c68238f688934d2088a1fa7c8e3 /apps/playlist.h
parent0e342181c3f96890506aa8720ac2d680b97c12e4 (diff)
The much-anticipated queue patch by Hardeep Sidhu. Queue a file by holding down PLAY on it while playing other music.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3040 a1c6a512-1295-4272-9138-f99709370657
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
int seed; /* random seed */
int amount; /* number of tracks in the index */
bool in_ram; /* True if the playlist is RAM-based */
+
+ /* Queue function */
+ int queue_indices[MAX_QUEUED_FILES]; /* array of queue indices */
+ int last_queue_index; /* index of last queued track */
+ int queue_index; /* index of current playing queued track */
+ int num_queued; /* number of songs queued */
+ int start_queue; /* the first song was queued */
};
extern struct playlist_info playlist;
@@ -43,18 +50,23 @@ extern bool playlist_shuffle;
int play_list(char *dir, char *file, int start_index,
bool shuffled_index, int start_offset,
- int random_seed, int first_index);
+ int random_seed, int first_index, int queue_resume,
+ int queue_resume_index);
char* playlist_peek(int steps);
char* playlist_name(char *name, int name_size);
int playlist_next(int steps);
void randomise_playlist( unsigned int seed );
void sort_playlist(bool start_current);
-void empty_playlist(void);
void add_indices_to_playlist(void);
void playlist_clear(void);
int playlist_add(char *filename);
+int queue_add(char *filename);
int playlist_amount(void);
int playlist_first_index(void);
+int playlist_get_resume_info(int *resume_index, int *queue_resume,
+ int *queue_resume_index);
+
+enum { QUEUE_OFF, QUEUE_BEGIN_QUEUE, QUEUE_BEGIN_PLAYLIST, NUM_QUEUE_MODES };
#endif /* __PLAYLIST_H__ */