views:

170

answers:

1

I'm totally lost, does anyone have a very simple example of how to record a sound using ALSA with c++? the only thing i need is the raw samples as signed bytes for feeding them to another part of my program. All the examples i found googling seem to have issues with PulseAudio or don't cover what i need.

+1  A: 

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

Troubadour