I've been looking at the Noise Alert code http://bit.ly/aHdbTO to see
how to monitor the amplitude of sound recorded by MediaRecorder.
Noise Alert uses mRecorder.getMaxAmplitude() to determine the maximum
amplitude seen since the last method call.
public double getAmplitude() {
if (mRecorder != null)
return (mRecorder.getMaxAmplitude()/2700.0);
else
return 0;
}
Can someone tell me why the getAmplitude function returns
maxAmplitude()/2700.0? Why does it divide by 2700 specifically?
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en