O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

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

Adjusting Pan

Most computers that have sound have two speakers, one on the left and the other on the right. You can adjust how much of a sound comes out of each speaker. If you are familiar with a car radio or home stereo, adjusting the pan is the same as moving the balance dial between left and right on your stereo (see Figure 12.2).

Figure 12.2. Pan allows you to adjust the level of sound coming out of each speaker.

By adjusting the pan level, you can create some pretty cool effects because you can enhance the illusion of movement by having a sound play from one speaker to another. Imagine a ship flying across the screen. You could have the ...

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