title: Max Amplitude from PCM Buffers - Audio Android
body: <p>I am trying to find maximum amplitude value from PCM Buffer.</p>
  
  <p>My questions are-</p>
  
  <p>1) I found that to find this value in DB, formula is : amplDB=20log(abs(ampl)/32767). Now given that ampl is in range of -32768 to 32767, the value of log((abs)ampl/32767) would be always negative. So is this formula the correct one? Should I just negate the value of amplDB?</p>
  
  <p>2) My values are coming very high. For normal song also the Maximum amplitude value is 32767, which doesn't seem correct. What are the usual amplitude values for a song?</p>
  
  <p>3) I found another formula amplDb=ampl/2700. What is this 2700 for?</p>
  
  <p>4) Is there any other way I can calculate the amplitude value?</p>
  
  <p>Thanks</p>