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 /firmware/id3.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 'firmware/id3.h')
-rw-r--r-- | firmware/id3.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/id3.h b/firmware/id3.h index 1a5bc7441e..d76614f540 100644 --- a/firmware/id3.h +++ b/firmware/id3.h @@ -47,6 +47,10 @@ struct mp3entry { /* these following two fields are used for local buffering */ char id3v2buf[300]; char id3v1buf[3][32]; + + /* resume related */ + int offset; /* bytes played */ + int index; /* playlist index */ }; #define VBR_FRAMES_FLAG 0x01 |