This project has moved. For the latest updates, please go here.

Mixing Example (2 MP3 inputs)

Jul 23, 2012 at 12:40 AM


I have been looking at this project on and off for the past few months and havent figured out how to mix 2 MP3 files (i.e. play them at the same time).

Can you provide a really brief example of how to do so? I did look at the MixingSampleProvider in the demo but still couldnt figure it out.



Jul 30, 2012 at 1:52 PM

1. create an AudioFileReader for each MP3 file

2. then add them as inputs to MixingSampleProvider (AddMixerInput)

3. Use SampleToWaveProvider or SampleToWaveProvider16 to convert back to an IWaveProvider to enable playback using