O'Reilly logo

Microsoft® XNA® Game Studio 4.0: Learn Programming Now! by Rob Miles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Playing Sounds

In this chapter, you will

  • Find out how to prepare sounds for inclusion in Microsoft XNA projects.

  • Incorporate sounds into XNA.

  • Play the sounds from within your programs.

Adding Sound

Now that you can display pictures and text, it’s time to make some noise. Then you can set about making a proper gaming experience for your players. You add sound to a game in the same way as you add other resources. You can even grab your favorite sound sample and drop it into the XNA Game Studio project as you did for the graphics resources (remembering to respect copyrights, of course).

If you want even more control over the sounds that your game makes, you can use something called the Microsoft Cross-Platform Audio Creation Tool (XACT) to create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required