title: Using NAudio to increase Sample Rate of WAV file causes "static"
body: <p>I am using a WaveFormatConversionStream to increase the sample rate of a mono-channel, 16-bit PCM WAV file containing recorded speech from 11025 to 16000 Hz.  The resulting WAV file is still intelligible, but seems to have a great deal of "static" (it sounds as if it's being played through a partially blown-out speaker).  Is this normal, expected behavior, or am I doing something wrong?  Code follows:</p>
  
  <pre><code>using (WaveFileReader wfr = new WaveFileReader("inFile.wav"))
  {
    var newFormat = new WaveFormat(16000, wfr.WaveFormat.BitsPerSample, wfr.WaveFormat.Channels);
    using (WaveFileWriter wfw = new WaveFileWriter("outFile.wav", newFormat))
    {
      using (WaveFormatConversionStream conversionStream = new WaveFormatConversionStream(newFormat, wfr))
      {
        conversionStream.Position = 0;
        byte[] buffer = new byte[1024];
        while (conversionStream.Position &lt; conversionStream.Length)
        {
          int bytesRead = conversionStream.Read(buffer, 0, 1024);
          if (bytesRead &gt; 0)
          {
            wfw.Write(buffer, 0, bytesRead);
          }
          else
          {
            break;
          }
        }
      }
    }
  }
  </code></pre>