C code for an open source Sound Level Meter (SLM)