title: Increase volume output of recorded audio
body: <p>I am trying to make a call recording app in Android. I am using loudspeaker to record both uplink and downlink audio. The only problem I am facing is the volume is too low. I've increased the volume of device using AudioManager to max and it can't go beyond that.</p>
  
  <p>I've first used MediaRecorder, but since it had limited functions and provides compressed audio, I've tried with AudioRecorder. Still I havn't figured out how to increase the audio. I've checked on projects on Github too, but it's of no use. I've searched on stackoverflow for last two weeks, but couldn't find anything at all.</p>
  
  <p>I am quite sure that it's possible, since many other apps are doing it. For instance Automatic Call recorder does that. </p>
  
  <p>I understand that I have to do something with the audio buffer, but I am not quite sure what needs to be done on that. Can you guide me on that.</p>
  
  <p><strong>Update:-</strong><br>
  I am sorry that I forgot to mention that I am already using Gain. My code is almost similar to <a href="http://sourceforge.net/p/rehearsalassist/code/HEAD/tree/android/branches/pause_and_gain/src/urbanstew/RehearsalAssistant/RehearsalAssistant.java" rel="noreferrer">RehearsalAssistant</a> (in fact I derived it from there). The gain doesn't work for more than 10dB and that doesn't increase the audio volume too much. What I wanted is I should be able to listen to the audio without putting my ear on the speaker which is what lacking in my code.</p>
  
  <p>I've asked a similar question on functioning of the volume/loudness at SoundDesign SE <a href="https://sound.stackexchange.com/questions/30334/how-to-increase-the-volume-of-a-sound-while-recording">here</a>. It mentions that the Gain and loudness is related but it doesn't set the actual loudness level. I am not sure how things work, but I am determined to get the loud volume output.</p>