I am trying to add background music to my game. I converted some songs to wave format, and added them to the content manager. When I tried to run, the Content.Load function threw a NotSupportedException with the message “Specified stream is not a wave file.”.
My LoadContent code looks like this:
music.Add(Content.Load(“MenuSong0”));
My ContentManager settings look like this:
Name | MenuSong0.wav
Build Action | Build
Importer | Wav Importer - MonoGame
Processor | Song - MonoGame
Quality | Best
I don’t know what the problem could be. The wav files run fine in media players, so the files themselves do not seem to be the issue.