Troubleshooting this TutorialSometimes, even though you try hard to understand the information in a tutorial, things don't work out quite like you want it to. This page is here to help you resolve any problems you might be having with the tutorial on using an XACT project in an XNA game. The Common Mistakes section describes common problems that people have when doing the things in this tutorial, and how to resolve them. The Frequently Asked Questions section describes questions that people have that aren't related to mistakes, but rather, trying to understand the stuff better or exploring how it can be used. If your problem or concern isn't addressed here, feel free to add a comment below, so that I know where you're having trouble. I like to keep these pages fairly clean, so I may remove comments that I felt like have been addressed. If I remove your comment and you don't feel like the problem has been fixed, repost the question and we'll take another look at it. If a tutorial has a mistake in it, I will fix the mistake and reply to the comment with a brief explanation. However, after a couple of weeks I'll likely go back and remove the original comment as well as my reply, because, hopefully, the problem will have been fixed, and it won't be a concern any more. |
Common MistakesNone listed yet… |
Frequently Asked QuestionsNone listed yet… |
Error 1 Cannot autodetect which importer to use for "Sounds\Win\Sound Bank.xsb". There are no importers which handle this file type. Specify the importer that handles this file type in your project. C:\Users\Jacques\Documents\Visual Studio 2008\Projects\Aggressor\Aggressor\Content\Sounds\Win\Sound Bank.xsb Aggressor
i get this error when i try to use the SoundBank
my code is similar to the tutorial but seems like i need to import something to use that file type it seems.
ive got all the default xna framework imports in my class so not sure what i should do
I too have this problem! its really holding me back so any help would be really appreciated, p.s. love your website! you are single handedly guiding me through my Honours year as an Audio student :) will be donating.
2 years late, but I have a solution for the XACT audio import problem.
1. In your game project, right click on references and select "Add Reference…".
2. Choose Assemblies/Extensions on the left
3. Find and select "Microsoft.Xna.Framework.Xact".
The import problems should go away and the AudioEngine/WaveBank/SoundBank classes should work.
Since the MonoGame version for this tutorial is not available (yet), I am giving the following link, which shows you how to do in section ‘Using XACT’. Actually, the main (and only?) difference is to build the three files (.xgs, .xsb and .xwb) from XACT (this is just one push of a button), and then add these directly to the game content as usual (through MGCB Editor, for example). /!\ In MGCB Editor, do not forget to put the ‘Build Action’ for these files as ‘Copy’ rather than ‘Build’! I just ran into an error for not doing it.
(remove spaces)
gamefromscratch . com/monogame-tutorial-audio/
Note: I did not need to launch AudConsole3.exe to make the software work; actually, the console closed as soon as I tried to open it. I suspect XACT already takes care of the background process. I do not know whether this is due to my having the ‘Refresh’ version of XNA Game Studio 4.0.
PS: actually, AudConsole3.exe (XACT Auditioning Utility) is needed if you want to hears sounds inside of XACT… Unfortunately, I do not know how to make the console/terminal stay up and running. If anyone knows, you are welcome.
Post preview:
Close preview