summaryrefslogtreecommitdiff
path: root/firmware/id3.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-08-16 14:41:47 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-08-16 14:41:47 +0000
commit6224cdb16677cae7b65b0598eec3381a6fb6a4aa (patch)
tree9ad9b39557492606c853e7f14c359bca5e0a3b65 /firmware/id3.h
parent085e77467565aba251c31721e92bc7ebd7baa61f (diff)
downloadrockbox-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 'firmware/id3.h')
-rw-r--r--firmware/id3.h4
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 {
47 /* these following two fields are used for local buffering */ 47 /* these following two fields are used for local buffering */
48 char id3v2buf[300]; 48 char id3v2buf[300];
49 char id3v1buf[3][32]; 49 char id3v1buf[3][32];
50
51 /* resume related */
52 int offset; /* bytes played */
53 int index; /* playlist index */
50}; 54};
51 55
52#define VBR_FRAMES_FLAG 0x01 56#define VBR_FRAMES_FLAG 0x01