-2

I downloaded the file from a YouTube to .wav converter and it works when I play it through Windows Media Player, but not in Visual Studio.

music.SoundLocation = songs[comboBox1.SelectedIndex]; //this file does exist and works in MediaPlayer
music.Play();//error

When I try to play the file the program crashes.

aleksa
  • 1
  • 1

0 Answers0