Abdullah Olowu

Abdullah Olowu

  • 1.1k
  • 602
  • 193

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

Dec 5 2024 10:53 AM

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)