From 6224cdb16677cae7b65b0598eec3381a6fb6a4aa Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Fri, 16 Aug 2002 14:41:47 +0000 Subject: 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 --- apps/settings.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/settings.h') 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 +#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 */ -- cgit v1.2.3