FLAC Slow Header

Andrew Gatt a.gatt at btinternet.com
Wed Sep 10 14:04:58 CEST 2008


Hi,

I'm using taglib 1.5 to set the tags up on some files. ID3s seem to work 
fine, however FLAC headers seems very slow (around 5 seconds) to 
complete. The below code snippet is inside a loop to re tag all the 
tracks in an album, as i've mentioned this functions fine for mp3 files, 
but FLAC files are very slow and seems to be happening in the save function.


               TagLib::FileRef tag_file(track_path.c_str());
               if(!tag_file.isNull() && tag_file.tag()) {
                       tag_file.tag()->setAlbum(album_info.at(0));
                       tag_file.tag()->setGenre(album_info.at(1));
                       
tag_file.tag()->setYear(atoi(album_info.at(2).c_str()));
                       tag_file.save();
               }


Anyone got any ideas on what i might be doing wrong or if there is a 
work around?

Thanks

Andrew


More information about the taglib-devel mailing list