This project has moved and is read-only. For the latest updates, please go here.

Play multiple WAV files simultaneously?

Nov 14, 2012 at 5:38 AM


I need to play multiple WAV files simultaneously. I found the MultiplexingWaveProvider class, but it does not support playing multiple inputs to one output. Is there a class/provider that would allow me to play several audio tracks simultaneously? If not, how would I go about making one?


Nov 14, 2012 at 6:45 AM

There are a number of mixer classes in NAudio. The oldest is WaveMixerStream32, but I recommend using MixingSampleProvider with AudioFileReader as the inputs.