How can I play multiple sounds at the same time using SharpDX in WinRT?
I am trying to make a musical instrument type of application. The problem I am having is that a new sound will only play if the old one is finished. I would like to be able to play them simultaneously. This is how my code looks like: First, the MyWave class which simply holds an audio buffer and some other info: class MyWave { public AudioBuffer Buffer { get; set; } public uint[] DecodedPacketsInfo { get; set; } public WaveFormat WaveFormat { get; set; } } In the SoundPlayer class: private XAudio2 xaudio; private MasteringVoice mvoice; Dictionary<string, MyWave> sounds; // Constructor public