I am trying to play a music file and during that I want to play some soundeffects for my console game.
SoundPlayer player = new SoundPlayer();
public static void StartBattelMusic()
{
player.SoundLocation = "D:....BattelMusic.wav";
player.Play();
}
public static void SwordHitSound()
{
player.SoundLocation = "D:....SwordHitSound.wav";
player.Play();
}
Both are working, but when I start the SwordSound file the Battel music stops. Thanks you allready for helping :)