XNA 4.0不能创建的Audioengine [英] XNA 4.0 cannot create an AudioEngine

查看:155
本文介绍了XNA 4.0不能创建的Audioengine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题是这个的衍生物:<一href=\"http://stackoverflow.com/questions/8389044/creating-xna-audioengine-on-windows-game-project\">Creating XNA上的Audioengine窗户游戏项目

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.

我无法用的Audioengine 类在我的项目。我曾尝试添加此using语句:

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.

推荐答案

请确保您有参考 Microsoft.Xna.Framework.Xact.dll

在Visual Studio中,在你的游戏项目中,右键单击参考文件夹 - > 添加引用

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

选择浏览标签,然后导航到程序文件(x86)/微软XNA / XNA游戏Sudio / V4.0 /文献/窗/ 86 /,选择 Microsoft.Xna.Framework .Xact.dll 并点击确定

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.

添加使用Microsoft.Xna.Framework.Audio; ,你应该能够使用的Audioengine

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

这篇关于XNA 4.0不能创建的Audioengine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆