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, 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__ */