diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-07-05 19:55:40 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-07-05 19:55:40 +0000 |
commit | 5c2c991d148de6aafae4836f4e40edb453734d94 (patch) | |
tree | 8bc792d3422894aad42643ddf13a025dc2084104 /firmware/export | |
parent | 1e5119b77bda5f67ad032a9587ead2d311b0767a (diff) | |
download | rockbox-5c2c991d148de6aafae4836f4e40edb453734d94.tar.gz rockbox-5c2c991d148de6aafae4836f4e40edb453734d94.zip |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h index 8f904e49e6..7970f529f1 100644 --- a/firmware/export/id3.h +++ b/firmware/export/id3.h | |||
@@ -19,6 +19,7 @@ | |||
19 | #ifndef ID3_H | 19 | #ifndef ID3_H |
20 | #define ID3_H | 20 | #define ID3_H |
21 | 21 | ||
22 | #include <stdbool.h> | ||
22 | #include "config.h" | 23 | #include "config.h" |
23 | #include "file.h" | 24 | #include "file.h" |
24 | 25 | ||
@@ -78,12 +79,16 @@ struct mp3entry { | |||
78 | unsigned int length; /* song length */ | 79 | unsigned int length; /* song length */ |
79 | unsigned int elapsed; /* ms played */ | 80 | unsigned int elapsed; /* ms played */ |
80 | 81 | ||
82 | int lead_trim; /* Number of samples to skip at the beginning */ | ||
83 | int tail_trim; /* Number of samples to remove from the end */ | ||
84 | |||
81 | /* Added for Vorbis */ | 85 | /* Added for Vorbis */ |
82 | unsigned long samples; /* number of samples in track */ | 86 | unsigned long samples; /* number of samples in track */ |
83 | 87 | ||
84 | /* MP3 stream specific info */ | 88 | /* MP3 stream specific info */ |
85 | long bpf; /* bytes per frame */ | 89 | long bpf; /* bytes per frame */ |
86 | long tpf; /* time per frame */ | 90 | long tpf; /* time per frame */ |
91 | long frame_count; /* number of frames in the file (if VBR) */ | ||
87 | 92 | ||
88 | /* Xing VBR fields */ | 93 | /* Xing VBR fields */ |
89 | bool vbr; | 94 | bool vbr; |