title: Sample Rate in Android Audio Record class and MediaRecord class
body: <p>i want to know what is the difference between setting audio sample rate in Android AudioRecord class and Media record class? In audio record class we set sample rate while creating an object of the class like</p>
  
  <pre><code>recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
                                              SampleRateInHz, RECORDER_CHANNELS,RECORDER_AUDIO_ENCODING, bufferSize); 
  </code></pre>
  
  <p>while in MediaRecorder class we set explicitly through a function call. i.e.</p>
  
  <pre><code>mrec.setAudioSamplingRate(samplingRate);
  </code></pre>
  
  <p>I tried both but effect of sample rate can only be seen while audio recording not while recording throug mediaRecorder class. I can not understand what is the differnce between both.</p>