Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read MP3 Property Info
Message
De
21/06/2002 19:03:03
 
 
À
21/06/2002 18:16:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00671272
Message ID:
00671276
Vues:
32
>I am writing an application to catalog MP3's. I would like to read the properties contained in the MP3 file(s), such as the Name, Artist, Album, Genre, Length, Bitrate etc., so that I can import this info. into my table, without having to manually input all the MP3's information.
>
>How can I gain access to this information contained in the MP3 file? I am using VFP 6.0 and VFP 7.0.

Check on wotsit site (http://www.wotsit.org/). To get theme/artist info you can build a reader from the following code (not robust at all):
m.lnFile = FOPEN(GETFILE())
FSEEK(m.lnFile,-128,2)
m.lcTag = FREAD(m.lnFile,128)
? "Title:",STRTRAN(SUBSTR(m.lcTag,4,30),CHR(0))
? "Artist:",STRTRAN(SUBSTR(m.lcTag,34,30),CHR(0))
? "Album:",STRTRAN(SUBSTR(m.lcTag,64,30),CHR(0))
? "Year:",VAL(SUBSTR(m.lcTag,94,4))
FCLOSE(m.lnFile)
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform