Menu

#191 Importfile not implemented function and 1 error

happens every time
open
nobody
5
2008-02-16
2008-02-16
No

The id3frameinfo_* functions are not exported
to the dll.

the question that I have is the following:
I did code a small test, but I dont get the
field information, because the ID3Frame_GetField(aframe, aframeid);
always returns the NULL pointer.

I have the latest library downloaded, and
implement this with c++ builder (latest version).
So what is wrong there? I did try this linking
the lib statically and dynamically. The frameid
is read correctly.

unsigned int i;
ID3Tag *tagnew=ID3Tag_New();
ID3TagIterator *aiter;
ID3Tag *tagresult, *tagover;
tagover=ID3Tag_New();
i=ID3Tag_LinkWithFlags (tagover, "c:\\1\\1.mp3", ID3TT_ALL | ID3TT_ID3V1 | ID3TT_LYRICS3V2 | ID3TT_MUSICMATCH);

aiter=ID3Tag_CreateIterator(tagover);
const Mp3_Headerinfo* mp3info;

ID3Field* myField = NULL;
ID3Frame *aframe = NULL;
ID3_FrameID aframeid=NULL;
ID3_FieldID aFieldName;
ID3Field *afield;
ID3Field_Clear(afield);
int numframes=ID3Tag_NumFrames(tagover);
while ((aframe=ID3TagIterator_GetNext(aiter))!=NULL)
{
aframeid = ID3Frame_GetID(aframe);

//(const ID3Frame *frame, ID3_FieldID name);
afield=ID3Frame_GetField(aframe, aframeid);
// here the afield is always NULL
if (afield!=NULL)
{
char *buffer;
i=ID3Field_GetASCII(afield, buffer, 2000);
}
}

Discussion


Log in to post a comment.