Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read MP3 Property Info
Message
De
22/06/2002 02:34:29
 
 
À
21/06/2002 19:03:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00671272
Message ID:
00671320
Vues:
47
>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)
I was not aware of that structure. I'm happy to know it can be manipulated directly. I tried your code and it works ok. For what it does, it's pretty robust for me enough. I understand it is not as flexible as instantiating an object and calling its method, but, that's cool.

Now, the interesting part in it is that I tried it on a MP3 file which has a long file name. From the MP3 player, I see over the 30th character for the title. But, if I try to extand the SUBSTR() TO more than 30 characters, it doesn't work. I wonder what formula those MP3 players are using to be able to extract those long file names.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform