// Play wav files
System.Media.SoundPlayer player = new SoundPlayer();
player.SoundLocation = "c:\\test.wav";
player.LoadAsync();
player.PlayLooping(); //asynchronous (loop)playing in new thread
Thread.Sleep(5000);
player.Stop();
player.SoundLocation = "c:\\test.wav";
player.LoadAsync();
player.PlayLooping(); //asynchronous (loop)playing in new thread
Thread.Sleep(5000);
player.Stop();