It looks like you're after the PlaySync
method of the PlaySync
class .. first add this on top:
using System.Media;
Then we get the following code:
SoundPlayer player = new SoundPlayer(@"path to first media file"); player.PlaySync(); player = new SoundPlayer(@"path to second media file"); player.PlaySync();
This class is available with .NET 2.0, so you must have one.
source share