diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-08-06 13:09:48 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-08-06 13:09:48 +0000 |
commit | d8cc2850342ef7c6386c4347b7fb55d204847f91 (patch) | |
tree | 616d0f63db553d194cf01b0d64dc3d28b954e446 /apps/playlist.h | |
parent | aba19c95b7723babef2a39ce9364cad60f09be3e (diff) | |
download | rockbox-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.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__ */ |