What is cAudio?
cAudio is a cross platform, advanced wrapper around the OpenAL API written in C++. cAudio was created with the idea of helping developers include 3d sound and effects into their programs as easily as possible. cAudio was created under the zlib license. This means that it is completely free to use for commercial and non commercial applications.
Example Code
This code snippit plays a audio file in 2D.
#include < cAudio.h >
int main()
{
//Create an Audio Manager
cAudio::IAudioManager* manager = cAudio::createAudioManager(true);
//Create an audio source and load a sound from a file
cAudio::IAudioSource* mysound = manager->create("music","../../media/cAudioTheme1.ogg",true);
if(mysound)
{
//Play our source in 2D once.
mysound->play2d(false);
//Wait for the sound to finish playing
while(mysound->isPlaying())
cAudio::cAudioSleep(10);
}
//Shutdown cAudio
manager->shutDown();
cAudio::destroyAudioManager(manager);
return 0;
}
Version
Currently caudio is being activly developed on github.
If you are looking for the current trunk it can be found at.
https://github.com/wildicv/cAudio/
cAudio is current stable version is 2.1.0.
SVN: http://svn.deathtouchstudios.com/cAudio/Trunk/