path: root/apps/playlist.h
diff options
authorHardeep Sidhu <>2003-12-09 08:18:03 +0000
committerHardeep Sidhu <>2003-12-09 08:18:03 +0000
commit58bafee963dc9171a15d9540fe622705590da6ff (patch)
tree1eb81504aaa3799ef8acf4999ceccc48c04f2900 /apps/playlist.h
parent166dc1743712a30ef2042be503cb888f93648b3f (diff)
Don't write playlist shuffle settings immediately to disk. Instead, save them in global settings and only flush to disk when the playlist is modified \(e.g. insert,delete\). As part of the changes the resume index was changed from an int to a short to give an extra 2 bytes in RTC ram to be used for another playlist index.
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.h')
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 0b30e7a3e1..45ecba505c 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -39,10 +39,11 @@ struct playlist_info
char *buffer; /* buffer for in-ram playlists */
int buffer_size; /* size of buffer */
int buffer_end_pos; /* last position where buffer was written */
- int index; /* index of current playing track */
- int first_index; /* index of first song in playlist */
+ short index; /* index of current playing track */
+ short first_index; /* index of first song in playlist */
int amount; /* number of tracks in the index */
int last_insert_pos; /* last position we inserted a track */
+ bool shuffle_flush; /* Does shuffle value need to be flushed? */
struct mutex control_mutex; /* mutex for control file access */
@@ -62,7 +63,7 @@ int playlist_start(int start_index, int offset);
bool playlist_check(int steps);
char *playlist_peek(int steps);
int playlist_next(int steps);
-int playlist_get_resume_info(int *resume_index);
+int playlist_get_resume_info(short *resume_index);
int playlist_get_display_index(void);
int playlist_amount(void);
char *playlist_name(char *buf, int buf_size);