The easiest way to record 8-bit monochrome 16hHz sound with alsa (in a sense, compatible with the pulse)?

I'm completely lost, does anyone have a very simple example of how to record sound using ALSA using C ++? the only thing I need is raw samples in the form of signed bytes to feed them to another part of my program. All the examples I came across seem to have problems with PulseAudio or not covering what I need.

+3
source share
1 answer

Listing 4 in this article shows how to use the ALSA library APIs to capture audio.

+2
source

Source: https://habr.com/ru/post/1726103/


All Articles