XNA 4.0 cannot create an AudioEngine

我是研究僧i 提交于 2019-12-20 05:50:55

问题


This question is a derivative of this one: Creating XNA AudioEngine on windows game project

I am working from the same book, and have the same problem as the original question. The solution provided by Andrew doesn't work as doesn't exist as well.

I am unable to use AudioEngine class in my project. I have tried adding this using statement:

using Microsoft.Xna.Framework.Xact;

I'm not sure what to do.


回答1:


Make sure you have the reference to Microsoft.Xna.Framework.Xact.dll

In Visual Studio, in your Game project, right click on References folder -> Add Reference

Select Browse tab, and navigate to Program Files (x86)/Microsoft XNA/XNA Game Sudio/v4.0/References/Windows/x86/, select Microsoft.Xna.Framework.Xact.dll and click on OK.

Add using Microsoft.Xna.Framework.Audio; and you should be able to use AudioEngine class.



来源:https://stackoverflow.com/questions/10307898/xna-4-0-cannot-create-an-audioengine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!