Using this code (from @jacobvosmaer) and these Ogg Vorbis files (from @nguillaumin):
#include <iostream>
#include <taglib/fileref.h>
int main(int argc, char **argv) {
if (argc != 2) {
std::cout << "usage: " << argv[0] << " file.ogg" << std::endl;
exit(1);
}
const char *filename = argv[1];
TagLib::FileRef file(filename);
std::cerr << "saving " << filename << " with taglib." << std::endl;
if (!file.save()) {
std::cerr << "file save failed" << std::endl;
exit(1);
}
}
The saved Ogg Vorbis files can't be decoded any program I've tried.
Using this code (from @jacobvosmaer) and these Ogg Vorbis files (from @nguillaumin):
The saved Ogg Vorbis files can't be decoded any program I've tried.