How to get track infoz [Archive] - Quintessential Forum

PDA

View Full Version : How to get track infoz


shaohao
05-22-2004, 06:45 AM
Hi, Paul:
Can you tell me how to get the track number and track comment info (or other tag info) as you did in your QCDMp3Enc.dll encoder plug-in.
(I can only get artist name, track name and album name with opGetTrackName, opGetArtistName and opGetDiscName.)

acozz
05-22-2004, 06:38 PM
id3lib + vorbislib

http://www.id3.org
http://www.xiph.org/ogg/vorbis/

You could actually skip over the bloated id3lib and just examine the tag format. It's pretty easy, I did it with Cover Art Vis.

OR

Paul is apparently revamping the tag editor and allowing developers to get any info from the tags. But that won't be compatible with 4.51 obviously.

Paul
05-22-2004, 10:41 PM
For the current version use opGetMediaInfo:
long track;
ICddbDiscPtr pDisc;
pDisc = (ICddbDisc*)QCDCallbacks.Service(opGetMediaInfo, 0, -1, (long)&track);
Then use the members of the ICddbDisc interface to get various metadata.