title: C# resample audio from 8khz to 44.1/48khz
body: <p>I have encountered a bug in DirectShow .NET where I create a secondary buffer with a sample rate of 8khz, and upon playback, the sound plays back at approx. 8.1khz instead.</p>
  
  <p>Googling this, I discovered that I might be forced to upsample the 8khz audio myself to 48khz or 44.1khz depending on the soundcard in the PC. </p>
  
  <p>Is there any C# library or generic algorithm I could use for this?</p>
  
  <p>Thanks!!</p>
  
  <p>Roey</p>