You can use the PortAudio library. PortAudio is a free, cross-platform open source library with audio I / O. It allows you to write simple audio programs in "C" that will compile and run on many platforms, including Windows, Macintosh (8.9, X), Unix (OSS), SGI, and BeOS. PortAudio is designed to promote the exchange of sound synthesis software between developers on different platforms.
source
share