title: how to change sample rate in wave file using c#
body: <p>i have try to use Naudio library and write this code in c# to change sample rate in wave file but nothing happened<br>
  so any one have an idea why this not working or there another way to do this in C# or Java</p>
  
  <pre><code> using (var reader = new WaveFileReader("C:/Users/FADI/Desktop/1.wav"))
         {
  
              var newFormat = new WaveFormat(10000, 8, 2);
  
   using (var conversionStream = new WaveFormatConversionStream(newFormat, reader))
          {
              WaveFileWriter.CreateWaveFile("C:/Users/FADI/Desktop/2.wav", conversionStream);
          }
         }
  </code></pre>