We need to calculate a hash of a mp3 file to uniquely identify it. The problem is that Traktor software modifies file's tags and there is no chance to change it.
We use id3lib library, so I thought maybe there is some way to get a prepended and appended size of tags of various versions and just read only media content between them to calculate hash of it. I've been searching in id3lib docs and the only thing I have found is ID3_Tag::GetPrependedBytes()
and ID3_Tag::GetAppendedBytes()
, like that:
const std::size_t prepend = tagOpener.GetPrependedBytes();
const std::size_t append = tagOpener.GetAppendedBytes();
const std::size_t overall = tagOpener.Size();
but they merely return 0.
If that can help, we are developing in C++ along with Qt, so maybe there can be some things to help with the snag.