1
Answer

Sound effects not converting from 'byte[]' to 'System.IO.Stream?'

Abdullah Olowu

Abdullah Olowu

Dec 05
261
1

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();

Answers (1)