1
如何寫Vorbis註釋的元數據,即標籤(例如「TITLE」),使用libFLAC現有FLAC文件++(http://flac.sourceforge.net)現有FLAC文件?寫入Vorbis註釋元數據(標籤)使用libFLAC++
例如:
const char* fileName = "/path/to/file.flac";
// read tags from the file
FLAC::Metadata::VorbisComment vorbisComment;
FLAC::Metadata::get_tags(fileName, vorbisComment);
// make some changes
vorbisComment.append_comment("TITLE", "This is title");
// write changes back to the file ...
// :-(there is no API for that, i.e. something like this:
// FLAC::Metadata::write_tags(fileName, vorbisComment);
您有可用於metaflac程序的源代碼,你應該能夠弄清楚(即使它是C)。 – 2010-12-16 16:20:03
如果沒有人回答,我會走這條路。 – mvladic 2010-12-16 19:57:27