title: How to I convert PCM 24 bit wav files to mp3 using c#?
body: <p>How to I convert PCM 24 bit wav files to mp3 using c#?</p>
  
  <p>I know the <a href="https://github.com/Corey-M/NAudio.Lame/blob/master/MP3FileWriter.cs" rel="nofollow">nAudio.Lame</a> library offers conversion functionality. But it looks like it doesn't support wavs in this format:</p>
  
  <p>This is a code snippet from nAudio.Lame</p>
  
  <pre><code>if (format.Encoding == WaveFormatEncoding.Pcm &amp;&amp; format.BitsPerSample != 16)
                  throw new ArgumentException(string.Format("Unsupported PCM sample size {0}", format.BitsPerSample), "format");
  </code></pre>
  
  <p>Any suggestions?</p>