Hi from Barcelona, Spain!
As "Music" section is still under study by EE responsibles, as VB is the language in which I'm developing my program, I've decided this is the correct place to put this question.
The matter is: is there any simple way to read the song time of playing from a MP3 file? Simple means open the file, perhaps look for a given tag ID, read it and it's done. I pray for not having to use C; anyway, VB can open and read from files, too.
If C programming is needed, I would use from VB via a DLL call. I have a freeware 32 bit C compiler, and I think it's not difficult to create a DLL. After, using my VB manual, I can implement the call (I suppose, as I never have done so). The problem then would be the code itself, as I'm a completely newbie to C.
By now my main problem is I don't know if there is any tag or stamp in the file structure to store the playing time, or if WinAmp makes a calculation from several parameters.
I wouldn't want urls as answers, because I've already visited some of them (
www.id3.org, etc) and I haven't found nothing; furthermore, all is C-related. The only way to accept an url as answer is to find there the solution to my question (or nearly), not MP3 technical (very technical) stuff.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=4547
Descripton:
MPEG Tag Viewer/Edit and MPEG File Info class module. Allows TAG viewing editing, and returns info on the MPEG file itself like Copyrighted, Seconds, Bytes, Mpeg Version, Layer Version, KBits, Hz, Mode, Private, CRCs, Original, Emphasis, and Channels. I know there is alot of code for editing a TAG but I wanted something that would allow for editing the TAG and viewing the info on the file. BTW: I included a short example program on how to use the class module for anyone who doesn't know about class modules.