|
|
Chapter 10 - Audio APIs
File Details
| Downloads: |
314 |
File Size: |
Unknown |
| Posted By: |
groundh0g |
Views: |
368 |
| Date Added: |
Sun, Aug 12 2007 |
|
Chapter 10 explains how you can use the Cross-Platform Audio Creation Tool (XACT) and the audio APIs of the XNA Framework to add music and sound effects to your XNA games. The example code for this chapter demonstrates basic audio programming concepts by playing, and allowing the player to manipulate, three audio cues. The first is a background music clip that loops indefinitely. The second is an audio clip of my eldest girl telling a story that the listener can play, pause, stop, and restart. The third is a cheesy laser effect that plays whenever the player presses the A button on their controller. The laser effect was designed in XACT so that each time it's played, the pitch and volume of the effect vary slightly. The player can adjust the volume of the music loop and sound effects independently. See the video here. Note: The link to the example file points to a share on my website. The ZIP is rather large (19MB), so the download will take quite a bit longer than the other examples.
|
|