O'Reilly logo

XNA® 3.1 Game Development for Teens: Game Development on the PC, Xbox 360®, and Zune® Player by Jerry Lee Ford

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 9. Adding Sound Effects and Background Music

Up to this point in the book, all of the sample applications have had one thing in common: they have been mute. Quality sound effects and background music are essential components of computer games. They help set the mood and to make things more exciting. Effective use of sound effects can also provide an additional means of communicating with game players, letting them know when certain types of events occur.

An overview of the major topics covered in this chapter includes learning:

  • About the different types of audio files supported by XNA

  • How to add audio files to your XNA applications

  • How to play and pause audio playback

  • How to loop audio playback and to control volume, pitch, and pan

Adding Audio ...

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