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