summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-07-05 19:55:40 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-07-05 19:55:40 +0000
commit5c2c991d148de6aafae4836f4e40edb453734d94 (patch)
tree8bc792d3422894aad42643ddf13a025dc2084104 /firmware/export
parent1e5119b77bda5f67ad032a9587ead2d311b0767a (diff)
downloadrockbox-5c2c991d148de6aafae4836f4e40edb453734d94.zip
rockbox-5c2c991d148de6aafae4836f4e40edb453734d94.tar.gz
rockbox-5c2c991d148de6aafae4836f4e40edb453734d94.tar.bz2
rockbox-5c2c991d148de6aafae4836f4e40edb453734d94.tar.xz
Applied patch "[ 1232957 ] MP3 metadata fixes for software codec".
Thanks to Magnus Holmgren. Now metadata reading is better with improved performance for mp3 files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7030 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/id3.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index 8f904e4..7970f52 100644
--- a/firmware/export/id3.h
+++ b/firmware/export/id3.h
@@ -19,6 +19,7 @@
#ifndef ID3_H
#define ID3_H
+#include <stdbool.h>
#include "config.h"
#include "file.h"
@@ -78,12 +79,16 @@ struct mp3entry {
unsigned int length; /* song length */
unsigned int elapsed; /* ms played */
+ int lead_trim; /* Number of samples to skip at the beginning */
+ int tail_trim; /* Number of samples to remove from the end */
+
/* Added for Vorbis */
unsigned long samples; /* number of samples in track */
/* MP3 stream specific info */
long bpf; /* bytes per frame */
long tpf; /* time per frame */
+ long frame_count; /* number of frames in the file (if VBR) */
/* Xing VBR fields */
bool vbr;