Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read MP3 Property Info
Message
 
To
22/06/2002 02:34:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00671272
Message ID:
00671379
Views:
27
There are actually several versions of the TAG format. I suggest you use WinAmp or like player and build a tag with the different formats and see what the headers look like at the end then parse from there... You can easily do this with a text editor.

+++ Rick ---

>>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.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform