23 Jul
2012
23 Jul
'12
9:13 a.m.
Hello,
I'm going to use the MMAP feature of ALSA. I understood I have to use snd_pcm_mmap_begin and snd_pcm_mmap_commit functions, but I can't understand the meaning of some parameters in the snd_pcm_mmap_begin function: when I call this function in order to have access to the capture stream on a call like this:
err = snd_pcm_mmap_begin(capture, &c_area, &c_offset, &c_frames);
it keeps to return c_frames = 0: is it right ? what does this mean? is the buffer full so that I can read samples or the available contiguous space to be read is 0?
Thank you,
Alberto
--
Dr. Villa Alberto
Sw Engineer
SeleTech srl
via Collodi, 8 20052 Monza (MI)
tel: +39 039 5962000
fax: +39 039 9716905
email: a.villa@seletech.com
web: www.seletech.com
www.seletech.eu