I tried to figure out how to enable gapless playback on a 2G Nano. With
iTunes, it works fine, of course.
I analyzed the MHIT data written by iTunes7. There are the pregap,
postgap and sample_count fields, that is fine.
But there is another 4 byte number at offset 248, that is quite close to
the number of bytes that the track has (it's always a bit less). I don't
know what this number really is. But if it is set to zero, the gapless
playback does not work. You hear the small "click" when the track
I have one track, for example, where the MP3 is 3.176.448 bytes long.
When I strip off the ID3 tags, the file is still 3.175.780 bytes.
The value at offset 248 (written by iTunes) is 3.172.309
Does anybody know how to calculate this magic number that iTunes puts at