How can you get the current recording volume reading from the microphone?

How can you get the current recording volume reading from the microphone? By this, I'm referring to the loudness of the sound that is being recorded by the microphone. I've searched MSDN for hours, but to no avail... So, I'd appreciate the help.

Answers


Actually, I think there is no simpler way than to obtain some audio using the older mixer or newer WASAPI API (i.e. start recording) and determine the volume (i.e. signal strength) yourself. For this purpose, you can easily calculate the root mean square, which is equal to the average signal power.


By "Determine the volume yourself" do you mean: start recording and then use a separate thread to open the recorded file, tail it and determine the amplitude? Because that sounds fairly complicated and proc heavy - and if you don't mean that, how else to get at the recorded audio?


Need Your Help

Simultaneous NSDate generation leading to different time intervals

ios objective-c bluetooth nsdate gamekit

In a server-client game using bluetooth connectivity (GameKit, specifically, for iOS6 compatibility), 1 or more client devices (iPhone/iTouch) send a timestamp to the server device (iPad) when a bu...

Getting the title of button that was touched

iphone ios c

I have three buttons on my iPhone app and would like to programmatically access the title of the button that was touched.