title: NAudio: All mixer inputs must have the same WaveFormat
body: <p>I converted a WaveProvider16 to a SampleProvider using Pcm16BitToSampleProvider.  I then added it to a MixingSampleProvider.  The logs did indicate that both are IeeeFloat.  But the program halted at the AddMixerInput line and the error was All mixer inputs must have the same WaveFormat.</p>
  
  <p>Any thought of what I have missed?</p>
  
  <pre><code>    myWaveProvider = new MyWaveProvider16();
      mySampleProvider = new Pcm16BitToSampleProvider(myWaveProvider);
      mixerBusWaveFormat = WaveFormat.CreateIeeeFloatWaveFormat(8000, 1);
      myMixer = new MixingSampleProvider(mixerBusWaveFormat);
      myMixerSampleSource = new MixerSampleSource();
  
      Debug.WriteLine("mySampleProvider waveformat:  " + mySampleProvider.WaveFormat.ToString());
      Debug.WriteLine("myMixer waveformat:  " + myMixer.WaveFormat.ToString());
      myMixer.AddMixerInput(mySampleProvider);
  </code></pre>
  
  <p>Output:</p>
  
  <p>mySampleProvider waveformat:  IeeeFloat</p>
  
  <p>myMixer waveformat:  IeeeFloat</p>
  
  <p>A first chance exception of type 'System.ArgumentException' occurred in NAudio.dll
  An unhandled exception of type 'System.ArgumentException' occurred in NAudio.dll</p>
  
  <p>Additional information: All mixer inputs must have the same WaveFormat</p>