title: How to Mix 2 wav files together?
body: <p>I'm trying to record an input and merge it together with a song (not concatenate). I have a guitar that i recorded while listening to a song and I want to put the guitar on the song (like audcaity).
  Is there any way for doing it? If its not possible on real time mixing - is it possible to merge them after i recorded? Like after I recorded the guitar and now its a wav file and i want to mix 2 wav files together. 
  Thats the input device:</p>
  
  <pre><code> private void Capture()
      {
          input = new WasapiCapture((MMDevice)inputCombo.SelectedItem);
          bufferedWaveProvider = new BufferedWaveProvider(input.WaveFormat);
          input.DataAvailable += WaveInOnDataAvailable;
          input.StartRecording();
          write = new WaveFileWriter(System.IO.Path.GetTempFileName(), input.WaveFormat);
      }
  
   private void WaveInOnDataAvailable(object sender, WaveInEventArgs e)
      {
          bufferedWaveProvider.AddSamples(e.Buffer, 0, e.BytesRecorded);
          write.Write(e.Buffer, 0, e.BytesRecorded);
          write.Flush();
      }
  </code></pre>
  
  <p>Instead of writing it into a blank file i want to write it into a wav file thats already exists and not override it. Is it maybe possible with the MixingSampleProvider?</p>