Chapter 13. Turn Up the Volume

Let’s turn up the volume and add some volume to your game. There are multiple ways in which a gamer can add audio to his game, including playing back prerecorded wave files and generating audio dynamically while the game is running. Audio is an essential part of your game and can even play a part in your title’s game play.

In this chapter you learn:

• Loading and playback of sound effects

• Adjusting sound effect pitch, pan, and volume

• Microsoft Cross-Platform Audio Creation Tool (XACT)

• Recording audio using a microphone

• Generating dynamic audio

Playing Sound Effects

Now that your game looks stunning with all of the new fancy graphics techniques you learned, it is time to round out your game with some sound ...

Get XNA Game Studio 4.0 Programming: Developing for Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.