Can you give an example code to play an audio file in the C language, along with what header files are needed? I am new to this concept.... I am interested to learn this.
+2
A:
See http://stackoverflow.com/questions/1042752/best-c-audio-library-linux
On *nix: Simply print a raw audio file to /dev/audio
Yktula
2010-03-12 23:46:29
+1
A:
You can use PortAudio library. PortAudio is a free, cross platform, open-source, audio I/O library. It lets you 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 intended to promote the exchange of audio synthesis software between developers on different platforms.
Free PDF Ebook Download
2010-03-12 23:55:12