Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read MP3 Property Info
Message
From
22/06/2002 21:25:21
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/06/2002 02:34:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00671272
Message ID:
00671437
Views:
31
>>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.

ID1 tag is at the end of the file, and has limited length, and gets lost when the file is incomplete. ID2 is stored at the beginning and has a different structure, so it can keep longer names. As Rick said, roll some of your own and see how it's stored.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform