summaryrefslogtreecommitdiff
path: root/apps/playlist.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-08-06 13:09:48 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-08-06 13:09:48 +0000
commitd8cc2850342ef7c6386c4347b7fb55d204847f91 (patch)
tree616d0f63db553d194cf01b0d64dc3d28b954e446 /apps/playlist.h
parentaba19c95b7723babef2a39ce9364cad60f09be3e (diff)
downloadrockbox-d8cc2850342ef7c6386c4347b7fb55d204847f91.tar.gz
rockbox-d8cc2850342ef7c6386c4347b7fb55d204847f91.zip
RAM-based playlists added
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1559 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.h')
-rw-r--r--apps/playlist.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 3d37c5da5f..a218209857 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -29,20 +29,24 @@
29typedef struct 29typedef struct
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 indices[MAX_PLAYLIST_SIZE]; /* array of indices */ 33 int indices[MAX_PLAYLIST_SIZE]; /* array of indices */
33 int index; /* index of *NEXT* track to play */ 34 int index; /* index of *NEXT* track to play */
34 int seed; /* random seed */ 35 int seed; /* random seed */
35 int amount; /* number of tracks in the index */ 36 int amount; /* number of tracks in the index */
37 bool in_ram; /* True if the playlist is RAM-based */
36} playlist_info_t; 38} playlist_info_t;
37 39
38extern playlist_info_t playlist; 40//extern playlist_info_t playlist;
39extern bool playlist_shuffle; 41extern bool playlist_shuffle;
40 42
41void play_list(char *dir, char *file); 43void play_list(char *dir, char *file);
42char* playlist_next(int steps, char *dirname); 44char* playlist_next(int steps);
43void randomise_playlist( playlist_info_t *playlist, unsigned int seed ); 45void randomise_playlist( unsigned int seed );
44void sort_playlist( playlist_info_t *playlist ); 46void sort_playlist(void);
45void empty_playlist( playlist_info_t *playlist ); 47void empty_playlist(void);
46void add_indices_to_playlist( playlist_info_t *playlist ); 48void add_indices_to_playlist(void);
49void playlist_clear(void);
50int playlist_add(char *filename);
47 51
48#endif /* __PLAYLIST_H__ */ 52#endif /* __PLAYLIST_H__ */