Managed DirectX 9 Kick Start: Graphics and Game Programming

IN THIS CHAPTER

  • Including the Sound Namespace

  • Loading and Playing a Static Sound

  • Using Sounds in 3D

  • Manipulating the Listener

  • Using Effects with Your Sounds

  • In Brief

All of the 3D graphics in the world won't make a great game. Aside from the obvious game play issues, you also need to create an atmosphere in order to be compelling. Fancy graphics and pretty environments help, but the world doesn't really come alive until you've added sound. Could you imagine playing Pac-Man without hearing the trademark "wakka wakka wakka" while you're running around? What fun would Undying be without the amazing use of creepy sounds? During the course of this chapter you'll learn how to use rich sound and include it in your applications. The topics that will be covered include

  • Loading and playing static sounds

  • Playing sounds in a 3D world

  • Playing sounds with special effects

Категории