[Gambas-user] Please Total Time MP3

Rob sourceforge-raindog2 at ...94...
Sat Oct 16 17:52:04 CEST 2004


On Saturday 16 October 2004 11:10, Benoit Minisini wrote:
> It seems that SDL can't know the total length of an audio
> file. If somebody could help...

Unfortunately, accurately determining the length of an mp3 file 
is not so easy.... since every "frame" of the file can be a 
different length and a different bitrate (VBR), you have to scan 
the entire file to piece the track length together.  This is why 
XMMS has wildly fluctuating track lengths when you play some 
songs, too.

There's a Perl module to do it, so it's possible it could be 
implemented in pure Gambas, but I haven't tried it yet.

Rob






More information about the User mailing list