ID3LIB Image
-
Hi, I am using the ID3LIB and sucsesfuly writing all of the TAG except for the image. I had this working, but I must have messed something up and have spent ages trying to see the bug, but can't. Any help would be much apreciated...
ID3_Tag myTag("test.mp3"); // Remove Existing TAGs: myTag.Clear(); ID3_Frame* myFrame; // Update Image: myTag.AddFrame(ID3FID_PICTURE); myFrame = myTag.Find(ID3FID_PICTURE); if (NULL != myFrame) { ID3_Field* myField; myField = myFrame->GetField(ID3FN_MIMETYPE); if (NULL != myField) { myField->Set("image/jpeg"); } myField = myFrame->GetField(ID3FN_PICTURETYPE); if (NULL != myField) { myField->Set(ID3PT_COVERFRONT); } myField = myFrame->GetField(ID3FN_DATA); if (NULL != myField) { myField->FromFile("cover.jpg"); } } // Update the TAG myTag.Update();
An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky www.mpic3.com - My PIC based MP3 player project