Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ID3LIB Image

ID3LIB Image

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lucky the code machine
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups