summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-10 18:05:01 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-10 18:05:01 +0000
commit6475aa0c85fcca7a37a7aa4316173270fcb6d038 (patch)
treee6dbe18217113212a9b8e713d3325c5803b3f4a6 /firmware/export
parent673937d65402b058b5b5bfa5a1bf990c2d218dba (diff)
downloadrockbox-6475aa0c85fcca7a37a7aa4316173270fcb6d038.tar.gz
rockbox-6475aa0c85fcca7a37a7aa4316173270fcb6d038.zip
Experimental Xing header generation added. Use with caution
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3418 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/id3.h2
-rw-r--r--firmware/export/mp3data.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index 30be4bf883..a9ab9ef36f 100644
--- a/firmware/export/id3.h
+++ b/firmware/export/id3.h
@@ -39,7 +39,7 @@ struct mp3entry {
39 unsigned int first_frame_offset; /* Byte offset to first real MP3 frame. 39 unsigned int first_frame_offset; /* Byte offset to first real MP3 frame.
40 Used for skipping leading garbage to 40 Used for skipping leading garbage to
41 avoid gaps between tracks. */ 41 avoid gaps between tracks. */
42 unsigned int xing_header_pos; 42 unsigned int vbr_header_pos;
43 unsigned int filesize; /* in bytes */ 43 unsigned int filesize; /* in bytes */
44 unsigned int length; /* song length */ 44 unsigned int length; /* song length */
45 unsigned int elapsed; /* ms played */ 45 unsigned int elapsed; /* ms played */
diff --git a/firmware/export/mp3data.h b/firmware/export/mp3data.h
index a1018ebaa2..54a6899a78 100644
--- a/firmware/export/mp3data.h
+++ b/firmware/export/mp3data.h
@@ -46,7 +46,7 @@ struct mp3info {
46 int frame_count; /* Number of frames in the file (if VBR) */ 46 int frame_count; /* Number of frames in the file (if VBR) */
47 int byte_count; /* File size in bytes */ 47 int byte_count; /* File size in bytes */
48 int file_time; /* Length of the whole file in milliseconds */ 48 int file_time; /* Length of the whole file in milliseconds */
49 int xing_header_pos; 49 int vbr_header_pos;
50}; 50};
51 51
52/* Xing header information */ 52/* Xing header information */
@@ -61,6 +61,6 @@ int count_mp3_frames(int fd, int startpos, int filesize,
61 void (*progressfunc)(int)); 61 void (*progressfunc)(int));
62int create_xing_header(int fd, int startpos, int filesize, 62int create_xing_header(int fd, int startpos, int filesize,
63 unsigned char *buf, int num_frames, 63 unsigned char *buf, int num_frames,
64 void (*progressfunc)(int)); 64 void (*progressfunc)(int), bool generate_toc);
65 65
66#endif 66#endif