JACOB DEEPAK
JACOB DEEPAK

Reputation: 21

Capturing sound by ALSA

I am trying to capture the sound from sound card by ALSA in linux systems. Its read the data from the vector in PCM format. I need a way to find out the right way to capturing and save it to in the file and play to check the recevied data is correct or not.

Upvotes: 0

Views: 1978

Answers (1)

jjm
jjm

Reputation: 461

To capture audio to a file with alsa , you can use arecord. By using this you can simply capture input audio to a file. Or you can write your own application which read PCM data. You can use snd_pcm_readi API for this purpose.

Upvotes: 2

Related Questions