title: How to achieve ReplayGain in NAudio?
body: <p>I made an audio player using NAudio. It works fine but the volume fluctuate low and high depending upon the mp3 file. How to achieve replaygain using NAudio? 
  Suppose if i have calculated the replaygain and added to the metadata by any other means, how to dynamically adjust volume at run time? Is there any built in function for this? If not how to do it?</p>
  
  <p><strong>Edit</strong></p>
  
  <hr>
  
  <p>I'm using volume slider to adjust volume of each song according to the dB value of track gain like below</p>
  
  <pre><code>//-10.56 is track gain info in dB of a song. Track peak is 1.274087
  var result = Math.Exp((-10.56) * (2.302585092994046 / 20.0));
  decibel = (float)result;
  volumeSlider1.Volume = decibel;
  setVolumeDelegate(volumeSlider1.Volume);
  </code></pre>
  
  <p>is this the correct method? what is the purpose of Track peak?</p>