title: How to play ISampleProvider
body: <p>I want to convert an <code>ISampleProvider</code> to an <code>WaveStream</code> so I can be able to play it.How do I do this?</p>
  
  <pre><code>ISampleProvider mySamples = new mySampleProvider();
  IWavePlayer mySpeaker = new WaveOut();
  
  //Convert ISampleProvider to WaveStream Here
  
  mySpeaker.Init(mySamples);
  mySpeaker.Play();
  </code></pre>
  
  <p>Where mySampleProvider is a class that inherits from <code>ISampleProvider</code> but does not have <code>WaveStream</code> as a base class.</p>