taglib-devel Digest, Vol 55, Issue 6

Ralf Engels ralf-engels at gmx.de
Sun Jan 11 11:50:17 CET 2009


> Date: Sun, 11 Jan 2009 01:20:03 +0100
> From: Vidar Wahlberg <canidae at exent.net>
> Subject: Fetch length of track in milliseconds (patch attached)
> To: taglib-devel at kde.org
> Message-ID: <20090111002003.GD10375 at exent.net>
> Content-Type: text/plain; charset="us-ascii"
> 
> I'm working on a software that compares audio files with metadata from
...
> right, this means the longest duration of a track before length goes
> negative is about 49 days on a system where "int" is 32 bits.
> 
> Any thoughts? :)
> 
> 

I have some ideas.
If you are using my lame patch then you could substract the audio
samples that were added by Lame to the front and back to get a more
accurate count.

Also id3v2 has a tag called TLEN which should give you the length in
milliseconds.

BR,
Ralf




More information about the taglib-devel mailing list