Alessandro, 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... For an internet radio program I wrote I used xmms2d to play the songs and that's what I use to get the length and the current position of the played mp3. perhaps you can use something similar with either mplayer or mpg123 I hope this helps, Regards Dimitris On Sun, Jan 3, 2010 at 6:04 PM, Alessandro Rinaldi < alerina...@linuxzogno.org> wrote: > Ok, sorry. > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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