i used three differnet codes, yet it's giving the same error for .wav and .mp3 files
//byte[] file = File.ReadAllBytes(Properties.Resources.Ping2); Stream stream = new MemoryStream(file);
//plusOneSound = new SoundPlayer(Properties.Resources.Ping2);
// SoundPlayer audio = new SoundPlayer(Dino_endless_runner.Properties.Resources.); // audio.Play();