Hi Alessandro,

Dimitris Anogiatis wrote:
> to get the length of an MP3 file (since gb.sdl.sound works primarily with
> mp3s) I would personally write an ID3Tag module to get the mp3's length and
> then load it through gb.sound.sdl afterward.
>
> or if you want you could also explore the option of using an external
> player for your program...

The problem with mp3 is, that it can use different compression algorithms, 
which may compress the data dynamically i.e. depends on the pattern found in 
the sound. So it is difficult to calculate the length directly from the given 
file and that is the reason, why the length may be written in the ID3-Tag.

So the tip Dimitris give, seem to be the best solution.

HTH
Rolf

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to