3

I'm developing a note-taking utility and want to add a feature for voice-recording and playback in full duplex asynchronous mode.
What cross-platform c/c++ libraries/API's can I evaluate for my purpose? Google isn't much help in this case and the existing QA's on SO doesn't quite cover this.

slashmais
  • 7,069
  • 9
  • 54
  • 80

2 Answers2

3

PortAudio can accomplish what you want. It has lots of backends for different technologies like ALSA, ASIO, DirectSound etc.

cyco130
  • 4,654
  • 25
  • 34
  • OK, just found this: http://stackoverflow.com/questions/11151278/cross-platform-sound-api - looks like the ticket :) – slashmais Nov 20 '12 at 07:40
  • Also, if you don't care about Windows: most modern Unix-like systems have a port of Linux's Advanced Linux Sound Architecture (ALSA). –  Nov 20 '12 at 07:42
3

Take a look at JUCE. Has lots of audio helpers and numerous other utilities that make for fast development.

elSnape
  • 302
  • 1
  • 12
  • Didn't know about this so downloaded the latest zip (2.0) and compiled 'JuceDemo' (I'm on Debian), and this is impressive. I'm certainly going to give this a serious go .. – slashmais Nov 21 '12 at 18:01
  • OK, I tried to get juce set up for use in codeblocks, but couldn't get it to compile anything. I had a look at the source and got the impression it is approaching 'spaghetti-monster'-status, although I'll try to extract usable snippets from the code, I'm not any more going to waste much time with it. – slashmais Nov 24 '12 at 13:56