diff options
Diffstat (limited to 'apps/playlist.h')
-rw-r--r-- | apps/playlist.h | 16 |
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 @@ | |||
29 | typedef struct | 29 | typedef 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 | ||
38 | extern playlist_info_t playlist; | 40 | //extern playlist_info_t playlist; |
39 | extern bool playlist_shuffle; | 41 | extern bool playlist_shuffle; |
40 | 42 | ||
41 | void play_list(char *dir, char *file); | 43 | void play_list(char *dir, char *file); |
42 | char* playlist_next(int steps, char *dirname); | 44 | char* playlist_next(int steps); |
43 | void randomise_playlist( playlist_info_t *playlist, unsigned int seed ); | 45 | void randomise_playlist( unsigned int seed ); |
44 | void sort_playlist( playlist_info_t *playlist ); | 46 | void sort_playlist(void); |
45 | void empty_playlist( playlist_info_t *playlist ); | 47 | void empty_playlist(void); |
46 | void add_indices_to_playlist( playlist_info_t *playlist ); | 48 | void add_indices_to_playlist(void); |
49 | void playlist_clear(void); | ||
50 | int playlist_add(char *filename); | ||
47 | 51 | ||
48 | #endif /* __PLAYLIST_H__ */ | 52 | #endif /* __PLAYLIST_H__ */ |