[alsa-devel] runtime->boundary
Hi,
Can anyone help explain what is runtime->boundary and what is the value that is set for this? It seems to be a pretty huge value when I try and print it.
Also in snd_pcm_indiret_capture_transfer, I see this code snippet;
If (diff < runtime->boundary /2) diff += runtime->boundary
what is the reason for the same? If its for handling ring buffer wrapping, should I be setting my runtime->boundary to rumtime->buffer_size in the driver code?
Thanks, Harsha
At Fri, 10 Jul 2009 12:00:09 +0530, Harsha, Priya wrote:
Hi,
Can anyone help explain what is runtime->boundary and what is the value that is set for this? It seems to be a pretty huge value when I try and print it.
It's the boundary to wrap around to be expressed in 32bit or 64bit signed integer. It's like LONG_MAX, but aligned to the buffer size so that the position calculation gets easier.
So, it's not to wrap around the buffer size.
Takashi
participants (2)
-
Harsha, Priya
-
Takashi Iwai