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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment