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) | |
download | rockbox-6224cdb16677cae7b65b0598eec3381a6fb6a4aa.tar.gz rockbox-6224cdb16677cae7b65b0598eec3381a6fb6a4aa.zip |
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 @@ | |||
21 | #define __SETTINGS_H__ | 21 | #define __SETTINGS_H__ |
22 | 22 | ||
23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | #include "file.h" | ||
24 | 25 | ||
25 | /* data structures */ | 26 | /* data structures */ |
26 | 27 | ||
@@ -49,8 +50,11 @@ struct user_settings | |||
49 | 50 | ||
50 | /* resume settings */ | 51 | /* resume settings */ |
51 | 52 | ||
52 | int resume; /* power-on song resume: 0=no. 1=yes song. 2=yes pl */ | 53 | bool resume; /* resume option on/off */ |
53 | int track_time; /* number of seconds into the track to resume */ | 54 | int resume_index; /* index in playlist (-1 for no active resume) */ |
55 | int resume_offset; /* byte offset in mp3 file */ | ||
56 | int resume_seed; /* random seed for playlist shuffle */ | ||
57 | unsigned char resume_file[MAX_PATH+1]; /* playlist name (or dir) */ | ||
54 | 58 | ||
55 | /* misc options */ | 59 | /* misc options */ |
56 | 60 | ||