Lab 6: Game Audio w/ OpenAL

Introduction

The lab today will not consist of a graded portion. Since integrating game audio is a relatively simple task, I will provide a quick overview and samples in lab for those teams which have not tackled audio integration yet. This page will merely serve as a reference for important links.

The API we will be using to provide game audio is OpenAL. OpenAL is a popular open-source, cross-platform 3D audio API that has been used extrensively in numerous titles. Some of its notable features include automatic mixing of multiple positional audio sources, distance-based sound attenuation, environmental audio extensions (EAX), and doppler shifting.

Getting Started

I would first start by downloading and running my sample code here. This code is an adapted version of the OpenAL DevMaster.net tutorials and the demo code from lab 3. The sample code will play some simple background music and make a "collision" sound when the character walks into any obstacles. This should demonstrate how to simultaneously play background music and multiple effects.

Your primary source of additional usage information will be the DevMaster.net tutorials as well as the Programmers Guide It should hopefully be self-explanatory. If not, feel free to ask me questions.