Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read MP3 Property Info
Message
De
22/06/2002 03:14:54
 
 
À
22/06/2002 02:34:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00671272
Message ID:
00671322
Vues:
37
>>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()) [...]
>>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.

What I meant is that it does not check properly for the MP3 tag (which may not be present in the file) - even for what it does, it may return nothing but garbbage. A simple test would be:
IF LEFT(m.lcTag,3)=="TAG"
&& retrieve info
>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.

I know there is a MP3V2 tag header, but can't locate the specs. Since my interest in this stuff is marginal, I didn't push too hard to find it. But would be very glad if a good soul could post it in this thread ;)
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform