diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-08-16 14:41:47 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-16 14:41:47 +0000 |
commit | 6224cdb16677cae7b65b0598eec3381a6fb6a4aa (patch) | |
tree | 9ad9b39557492606c853e7f14c359bca5e0a3b65 /apps/settings.h | |
parent | 085e77467565aba251c31721e92bc7ebd7baa61f (diff) |
Added resume. Works in dirs and playlists, shuffled or not. Resumes mid-song, but press pause on players before you shutdown so they get a chance to store the position on disk. Recorders use RTC ram. Todo: Time display is wrong after mid-track resume and ffd/rew is not handled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1787 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/settings.h b/apps/settings.h index ba2a109f1a..f3f6d84327 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -21,6 +21,7 @@ #define __SETTINGS_H__ #include <stdbool.h> +#include "file.h" /* data structures */ @@ -49,8 +50,11 @@ struct user_settings /* resume settings */ - int resume; /* power-on song resume: 0=no. 1=yes song. 2=yes pl */ - int track_time; /* number of seconds into the track to resume */ + bool resume; /* resume option on/off */ + int resume_index; /* index in playlist (-1 for no active resume) */ + int resume_offset; /* byte offset in mp3 file */ + int resume_seed; /* random seed for playlist shuffle */ + unsigned char resume_file[MAX_PATH+1]; /* playlist name (or dir) */ /* misc options */ |