Chapter 14: 3D Sound Using OpenAL

OVERVIEW
In the last chapter, you experienced the glory of using 3D sound to create a truly believable 3D world. Granted, it was a pretty boring 3D world, with only one object, but still, you get the idea.In this chapter, you'll learn how to accomplish that same feat, only without using DirectX. Instead, you'll use a library called OpenAL, or the Open Audio Library.OpenAL is an API created by a consortium of people and companies to be an open, crossplatform API for 3D sound. It's the sister API to OpenGL for 3D graphics rendering, and the design and conventions used by OpenAL are the same as what you'd see in OpenGL.Creative Labs is the company currently doing the most to support OpenAL. They, along with a now-defunct company named Loki Entertainment Software, spearheaded the OpenAL effort, and today you can find the OpenAL SDKs hosted off their site (developer.creative.com).OpenAL is a very well-written cross-platform API, designed to do one thing—3D sound. Conceivably, you can do all of your game's audio using OpenAL, provided you're not heavily into dynamic music (or don't mind writing the code to support that on OpenAL).