I can't use any mp3 code that is patented by Fraunhofer, so no encoders OR decoders (e.g. ffmpeg, lame, MAD, etc.), plus it's too big.
I am doing this on Windows, but DirectShow's IMediaDet seems to slow down over time, calling it a few hundred times brings my system to a crawl, even re-using the same interface object and just putting the file name and getting duration!
So, is there some code out there that can read VBR files with C/C++ and get the duration?
There was another post on here to do CBR in C++, but the code makes a ton of assumptions and wont work for VBR of course.