cAudio: Free C++ Audio Engine



cAudio Engine



cAudio engine is a C++ wrapper around OpenAL. By default OpenAL supports only *.wav files and cAudio brings additional files support: ogg, mod, xm, it and s3d via Vorbis and Mikmod libaries.

Here is a basic 2d audio code sample:

#include 
#include "../../include/IAudioManager.h"
#include "../../include/IAudio.h"
using namespace std;
int main(int argc, char* argv[])
{
  cAudio::IAudioManager* manager = 
      cAudio::getAudioManager();
  manager->init(argc,argv);
  cAudio::IAudio* mysound = manager->createFromFile(
      "bling","bling.ogg", true);
  mysound->play2d(true);

  while(mysound->playing())
  {
    manager->update();
  }
  manager->release();
  manager->shutDown();
  return 0;
}

You can download cAudio source code, Win32/Linux SDK and documentation HERE.





[ Subscribe to Geeks3D latest news by email ]

Geeks3D.com

↑ Grab this Headline Animator