From d8cc2850342ef7c6386c4347b7fb55d204847f91 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 6 Aug 2002 13:09:48 +0000 Subject: RAM-based playlists added git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1559 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'apps/playlist.h') 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 @@ typedef struct { char filename[MAX_PATH]; /* path name of m3u playlist on disk */ + int dirlen; /* Length of the path to the playlist file */ int indices[MAX_PLAYLIST_SIZE]; /* array of indices */ int index; /* index of *NEXT* track to play */ int seed; /* random seed */ int amount; /* number of tracks in the index */ + bool in_ram; /* True if the playlist is RAM-based */ } playlist_info_t; -extern playlist_info_t playlist; +//extern playlist_info_t playlist; extern bool playlist_shuffle; void play_list(char *dir, char *file); -char* playlist_next(int steps, char *dirname); -void randomise_playlist( playlist_info_t *playlist, unsigned int seed ); -void sort_playlist( playlist_info_t *playlist ); -void empty_playlist( playlist_info_t *playlist ); -void add_indices_to_playlist( playlist_info_t *playlist ); +char* playlist_next(int steps); +void randomise_playlist( unsigned int seed ); +void sort_playlist(void); +void empty_playlist(void); +void add_indices_to_playlist(void); +void playlist_clear(void); +int playlist_add(char *filename); #endif /* __PLAYLIST_H__ */ -- cgit v1.2.3