[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    Re: Set / Get any tag
From:       Festus Hagen <festushagenlists () yahoo ! com>
Date:       2016-01-10 12:46:45
Message-ID: 1495544737.2244082.1452430005455.JavaMail.yahoo () mail ! yahoo ! com
[Download RAW message or body]

Yahoo mail is going to boink this, however here is a simple example ...

-Enjoy

/**
*
* It is what it is, you can do with it as you please. [with respect]
*
* Just don't blame me if it teaches your computer to smoke!
*
* -Enjoy
* fh : )_~
*
**/

/**
*
* Simple example of adding TextIdentificationFrame 'TLAN'.
*
* g++ -o toy main.cpp -I<"Path to taglib Headers"> -L<"Path to taglib library"> -ltag \
                -lz
* For shared, Ensure the taglib dll can be found
* For static, Add -DTAGLIB_STATIC
*
* Example ... Using taglib build tree, not an installed TagLib!
* g++ -DTAGLIB_STATIC -o toy main.cpp -I..\..\Build\taglib\Headers \
                -L..\..\Build\taglib -ltag -lz
*
**/

#include <mpegfile.h>
#include <textidentificationframe.h>
#include <id3v2tag.h>

int main(int argc, char *argv[])
{
TagLib::MPEG::File audioFile(argv[1]);
TagLib::ID3v2::Tag *tag = audioFile.ID3v2Tag(true);

TagLib::ID3v2::TextIdentificationFrame *frame = new \
TagLib::ID3v2::TextIdentificationFrame("TLAN");

TagLib::StringList l;
l.append("eng");           // Language 1, English
l.append("tlh");           // Language 2, Klingon
frame->setText(l);
tag->addFrame(frame);
audioFile.save();

return 0;
}

________________________________
From: Priya Krishnan <priya.salman@gmail.com>
To: taglib-devel@kde.org 
Sent: Saturday, January 9, 2016 1:20 AM
Subject: Set / Get any tag



How to add TLAN tag and save. I attempted to adding to propertiesmap and calling set \
properties and saved.

Save was successful , but it is not reflected in real file.

Can you explain how to add any tag (other than basic tags)?

Regards
Priya

_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic