I attempted to follow the XACT and the simple play a sound tutorial, but I cannot get the project to compile.
It says the wave files are missing. I placed them, through the Solution Explorer, to [Solution Name]\[Project Name]\Content\Audio. However, in the error, it is looking for them in the wrong place, adding an extra "\Content\" to the path if I put the XAP file in the root of the Content folder. If I put the XAP in the Content\Audio folder within my solution, it adds an extra "\Content\Audio\" to the path in the error message. So, for example, if the XAP file is in the root of the Content folder, it is searching in: "Content\Content\Audio\myWaveFile.wav" instead of "Content\Audio\myWaveFile.wav."
Every once in a while, with much fiddling, I can get it to "find" the files (I don't think it really is since I wasn't changing the file structure), but then it says it doesn't know how to compile wav files and to choose a processor or importer, which in the wav file properties in the Solution Explorer there is no wav file importer like there is for other file types like .X files.
Quick help appreciated. Cheers.
<Rant>
Don't read this part if you don't want to hear my complaints, it is unrelated to the above.
I have been coding Managed DirectX and DirectX for years, and I have been quite delighted with Managed DirectX. When I heard it was being discontinued for XNA, I was worried. Turns out XNA has been great and even easier and faster! Yay!
Until I hit this sound stuff. From what I read in trying to fix my current problem, it appears you cannot play wav files by themselves. Why in the world can't you play wave files straight up like you could with DirectSound? The whole XACT thing seems like a giant pain in the butt and not worth my time. I'll agree that DirectSound was confusing, but now I have to have a secondary program to Visual Studio just to precompile my sound effects?! Why do I even have to precompile my sound effects? What if I wanted the users to pick music or something? Just seems like a lot of effort when many projects will not use all the benefits of XACT. It also seems quite limiting to me. However, this rant is relatively minor to my overall frustrations actually...
Not related to the XNA framework, I would like to express my most sincerest disdain in these XNA forums. Not the community or the lovely people helping people learn XNA, but the sign-up process. I spent more than fifteen minutes signing up for these forums. That's just obscene. I had to sign up for a Windows Live account, then an XBox account, yet I have no XBox. I had to give Microsoft my e-mail three times for some ungodly reason. I had to enter my user name three times. I had to confirm my e-mail twice. Wasn't the first time enough? Heck, why do I have to two accounts to post on these forums? Why is it warning me about XBox points in case to I want to change my username? I don't even have an XBox; how the heck am I supposed to get these points anyway? What is all this this garbage!? It was a ten step process to finally post my simple (I know it is an easy question!) question! Add that to my frustrations about XACT made want to scream in my office today which probably wouldn't have been good.
XNA != XBox. I don't own an XBox. Don't make me fill out *#$^ about one. I just wanted to post to the forums. I can't be the only person who is transitioning from Managed DirectX to XNA who doesn't have an XBox. I can't be the only non-XBox person out there that doesn't want to spend fifteen plus minutes filling out the same darned information over and over just to get a little help. My question is a simple "oh, you just need tweak this one property" type of question and it has taken me as long as it would have taken me to import my old DirectSound code.
Lastly, it seems many people have been confused where to put files in the Solution Explorer. In the tutorial for getting sounds into XNA, it says to add the XAP file to the solution, not the content folder. Luckily, I have been using Visual Studio since the dawn of time, so I figured it should probably go in the Content folder which appears to be right--if I could get it to compile. Anyway, that tutorial should be made more clear for everyone. Or just add screenshots of the solution explorer to make it clear.
</Rant>