The audio.engine manages playback of prerendered and streaming audio clips. It uses OpenAL as the underlying interface to audio hardware. As clips play, their 3D location, volume, and other attributes can be updated on the fly.
An audio-engine object manages the connection to the OpenAL implementation and any playing clips:
The audio engine can be started and stopped. While it is running, it must be regularly updated to keep audio buffers full and clip attributes up to date.
Two types of audio clip objects can be played by the engine. A static-audio-clip plays back a static, prerendered, fixed-size block of PCM data from an audio object.
Every audio clip has an associated source object that determines the clip's 3D position, velocity, volume, and other attributes. The engine itself has a listener that describes the position, orientation, velocity, and volume that make up the frame of reference for audio playback. Audio source protocol Audio listener protocol