I got some source code somewhere , and a standalone exe file (Freebasic, Compiles into c i think, not interpreted at run time so its fast and light as basic goes)
plug in a analogue mic in to your sound card, run the prog and then a text file is created
in the text file is a volume and a time, eg volume = 77 , time = 12:35:17
updates a couple of times a second, text file gets bigger 1 line at a time, can easily distinguish 10 different volume levels of sound. Just write a snippet of code to snoop the txt file in the language of your choice
any good to you ?
Original code was a spectrum analyzer that output to the screen in real time, i just sampled some screen pixels to get the peak volume levels at any given point in time. Butt ugly but it works !