I've already searched for ways to capture/play audio with C Language, but I haven't found anything useful. Is there such a way to do this, or I'll have to use another language like C++, C# or Java?
PortAudio is perfectly usable from C.
PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O.
PortAudio provides a very simple API for recording and/or playing sound using a simple callback function or a blocking read/write interface. Example programs are included that play sine waves, process audio input (guitar fuzz), record and playback audio, list available audio devices, etc.
I think there is no reason to capture - play audio with pure c if it will be used on pc. but its easy with c++ becouse it has ready libraries. or if you want to work with a framework you can try c# or java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With