Creating XNA AudioEngine on windows game project

前端 未结 1 1858
有刺的猬
有刺的猬 2021-01-28 15:38

I\'m reading this book \"Learning XNA 4.0\", and in chapter 6 it teaches how to play sounds using XACT Audio files. It asks me to create an AudioEngine object, but I can\'t find

1条回答
  •  粉色の甜心
    2021-01-28 15:44

    This is an error in the documentation. AudioEngine is actually in the Microsoft.Xna.Framework.Xact assembly. Add a reference to that, and everything should work as expected.

    Note that XACT is not available on Windows Phone 7 (this is why it is in a separate assembly). If you plan to go mobile later, use SoundEffect instead.

    0 讨论(0)
提交回复
热议问题