From 6475aa0c85fcca7a37a7aa4316173270fcb6d038 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 10 Mar 2003 18:05:01 +0000 Subject: Experimental Xing header generation added. Use with caution git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3418 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/id3.h | 2 +- firmware/export/mp3data.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/export') 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 { unsigned int first_frame_offset; /* Byte offset to first real MP3 frame. Used for skipping leading garbage to avoid gaps between tracks. */ - unsigned int xing_header_pos; + unsigned int vbr_header_pos; unsigned int filesize; /* in bytes */ unsigned int length; /* song length */ 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 { int frame_count; /* Number of frames in the file (if VBR) */ int byte_count; /* File size in bytes */ int file_time; /* Length of the whole file in milliseconds */ - int xing_header_pos; + int vbr_header_pos; }; /* Xing header information */ @@ -61,6 +61,6 @@ int count_mp3_frames(int fd, int startpos, int filesize, void (*progressfunc)(int)); int create_xing_header(int fd, int startpos, int filesize, unsigned char *buf, int num_frames, - void (*progressfunc)(int)); + void (*progressfunc)(int), bool generate_toc); #endif -- cgit v1.2.3