All of lore.kernel.org
 help / color / mirror / Atom feed
* Handling non-buffer-sized MMAP requests
@ 2010-12-09 21:34 louis
  2010-12-13  8:56 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: louis @ 2010-12-09 21:34 UTC (permalink / raw)
  To: alsa-devel

Hi everyone, I'm having some difficulty improving a full-duplex MMAP ALSA
routine.  ALSA sometimes reports more samples available for input than my
buffer can take, or asks for more samples than I have available.  Is this
a buffer overrun/underrun?  If I restart the streams in the case that too
much input is available (on the assumption that it's an xrun) it seems to
happen at the drop of a hat and makes things worse.  If I discard the
excess input, that doesn't work well either.

What is the appropriate way to deal with this situation?  What does it
mean that ALSA is offering me more samples than I have set for the buffer
size?

Cheers,
Louis

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

end of thread, other threads:[~2010-12-18  0:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 21:34 Handling non-buffer-sized MMAP requests louis
2010-12-13  8:56 ` Clemens Ladisch
2010-12-17 18:56   ` louis
2010-12-18  0:32   ` Raymond Yau

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.