All of lore.kernel.org
 help / color / mirror / Atom feed
* Using MMAP feature
@ 2012-07-23  7:13 alberto Villa
  2012-07-23 10:38 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: alberto Villa @ 2012-07-23  7:13 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-23 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23  7:13 Using MMAP feature alberto Villa
2012-07-23 10:38 ` Clemens Ladisch
     [not found]   ` <500D40D5.6050606@seletech.com>
2012-07-23 14:46     ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.