Audio Framework OpenAL
July 7, 2009 § Leave a comment
OpenAL is similar to OpenGL. It is straightforward with 3 main entities: the Listener, the Source, and the Buffer.
The Listener is you. OpenAL allows you to specify where the listenser is in relation to the sources. You can keep the minimum static sound.
The Source is similar to a speaker. It generates sound which the listener can hear. You can move the sources around and get positional effects. Or you keep this simple.
The Buffer is sound that will be played. The buffer holds the raw audio data.
The device is hardware that will be playing the sound and context is the current session for audio.
* get the device
* make a context with the device
* put data into the buffer
* attach the buffer to a source
* play the source