Game Development Reference
The remainder of the code takes care of housecleaning upon exit.
That's really all there is to creating 3D sound effects using OpenAL. Of course, managing
multiple sounds with environmental effects in a real game is certainly more involved,
but the fundamentals are the same.