title: NAudio multiple Input to multiple Output
body: <p>I have multiple audio Input</p>
  
  <ul>
  <li>1 WaveProvider from a File</li>
  <li>1 WaveProvider from a SpeechSynthesizer</li>
  </ul>
  
  <p>And I want to forward these WaveProvider to multiple audio Output WaveOut (to multiple DeviceNumber).</p>
  
  <p>But I have 3 issues:</p>
  
  <ol>
  <li>Some WaveOut seems wrong and hang forever</li>
  <li>WaveOut.Play() seems synchronized</li>
  <li>If I put them in Tasks the first Task start playing on device then it is interrupted by the other Task on the other Device</li>
  </ol>
  
  <p>Does anybody have a sample code working correctly ?</p>
  
  <p>Here is a sample that do not work with 2 tasks:</p>
  
  <pre><code>Buffer = new BufferedWaveProvider(new WaveFormat(44100, 16, 2));
  WaveOut = new WaveOut();
  WaveOut.DeviceNumber = device;
  WaveOut.Init(Buffer);
  
  ...
  
  Buffer.AddSamples(bytes, 0, bytes.Length);
  WaveOut.Play();
  </code></pre>
  
  <p>I did't find sample playing with all WaveOut. According to NAudio author, I shouldn't have to use Tasks but I don"t know how to set multiple output and input in magic mixer class ?</p>
  
  <p>Regards</p>