Hi,inspired by the wonderful work in this thread, I wrote my own implementation of the EBU R 128 standard.It is written in plain ANSI C and designed as a library, so you can use it in your own code. It's licensed under the MIT license.

I've also implemented a simple scanning tool, which outputs something like this:

Version 0.1.5 has arrived!- I've seperated the scanners. They all support the same options and differ just in the input formats. There are: -- r128-sndfile (for Vorbis, FLAC, WAV, and many others) -- r128-mpg123 (for MP1, MP2, MP3) -- r128-musepack -- r128-ffmpeg (everything else)- Added needed DLLs (FFmpeg is compiled as LGPL version)- Added Musepack support to the tagging script- Many improvements in the library (thanks to C.R.Helmrich!)- Fixed loudness range calculation. In 0.1.4, when a new segment was started, calculation stopped. This is now fixed!- Minor bug fixes.- A Win64 build! Please let me know if it works. It's 20-30% faster than the Win32 build. This is probably because SSE optimizations are not enabled in the Win32 build. I will try to do this soon.