-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|708|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> File Access


 
spinal
Created : 06 November 2007
 
Language : Blitz

Read ID3v1

See Title

I was looking at reading id3 tags in .mp3 files and it was a million times easier that I first though it might be.

Here is the blitz code to do it.


 

Comments


Wednesday, 07 November 2007, 06:49
Jayenkai
Seems to work fine.
Nothing to complain about, but then I'm used to just using Coolplayer, which has the old V1 tags. I'm not sure if newer tags might mess up the specs.
Wednesday, 07 November 2007, 16:21
spinal
version 1 is the above format, version 1.1 uses the last two bytes in the comment (thats why i'm only reading 28 bytes instead of 30) to store the track number (a zero byte followed by the track number). Most mp3 players will stop reading text at a zero byte, so the track number would be ignored in older players.

Newer versions of the tag store the data some other place, but most mp3 rippers use 1.1 i think as default.