monogame c# - loading sound file
I'm trying to load sound into my game. I downloaded an .mp3 sound (a
second long) and tried to load it both as Song and as SoundEffect, but it
didn't work, so I tried loading the same sound but as .wav and I was able
to load it as a SoundEffect. The problem is that the sound that is coming
out sounds like static noise. I looked a bit into this and found out I
need to load sounds as .xnb files, so I downloaded 'XNAContentCompiler'
project and tried to compile the sounds causing a 'PInvokeStackImbalance'
error.
So I found this thread:
http://xboxforums.create.msdn.com/forums/p/65519/65519.aspx
Saying I can ignore this and continue.
The xnb file fails to be created when I try to convert the .wav files,
saying it is 24-bit audio and I may only use 8 to 16 bit. So I tried to
compile the .mp3 file and it succeed, creating a 1k file that I still
cannot load not as a Song and not as SoundEffect.
I'm now completely lost on this and can no longer understand what I need
to try to load and what is a different problem completely, and I would
love some explanations... Thank you.
No comments:
Post a Comment