[Gambas-user] Read header of MP3 file.

Bodard Fabien gambasfr at ...11...
Sun Oct 31 12:34:03 CET 2004


Le dimanche 31 Octobre 2004 06:32, Leo Barnhoorn a écrit :
> Hello All,
>
> Example Class read header of mp3 file.
>
> Returns:
>
> Album
> Artist
> BitRate
> Comment
> Duration
>
> Minutes    If more songs then you can calc the total duration of all the
> Seconds    songs.
>
> Frequency
> Genre
> Mode
> MpegLayer
> MpegVersion
> Songname
> Year
> Track
> VBR
>
> Regards,
> Leo.
Hi leo

PRIVATE FUNCTION GetGenreFromID(iListGenre AS Integer) AS String

Dim arGenre as new String[]

arGenre = array["genre1", "genre2", etc...]
if iListGenre > 125 then iListGenre = 125
return arGenre[iListGenre]
END

More simple no ?

You can fill the array in the constructor... By this way... i think it's more 
speedy.

Add this to my site... i will add the update page today... it work... but i've 
not updated the site. I've made a parser too  to colorize the code.

Fabien Bodard




More information about the User mailing list