Search code examples
c++audioopenal

Recording Audio with OpenAL


I've been comparing various audio libraries available in C++. I was wondering, I'm kind of stuck starting with OpenAL. Can someone point out an example program how to record from a mic using OpenAL in C++.

Thanks in advance!


Solution

  • Last time I checked OpenAL it was quite simple. You create the recording device and start the recording going. You then just call the get buffer function. It will wait until there is enough data to fill the buffer and then return when there is enough data.

    Why not just look at the "capture" example that comes with the OpenAL SDK ...?