What does Android's getMaxAmplitude() function for the MediaRecorder actually give me?
问题 The Android MediaRecorder has a function .getMaxAmplitude(); which, as the API tells me, "Returns the maximum absolute amplitude that was sampled since the last call to this method." but I can't find what amplitude this is? Is it in pascal or watts? I have found on several pages on the web that you can calculate a value closely corelated to decibels using (as suggested here). double db = (20 * Math.log10(amplitude / REFERENCE)); which would let me assume that the returned value is in some