[alsa-devel] Underruns in basic audio playback application

Devin Heitmueller dheitmueller at kernellabs.com
Fri Dec 4 16:08:06 CET 2009


On Fri, Dec 4, 2009 at 3:28 AM, Christophe Osuna
<christophe.osuna at gmail.com> wrote:
> I don't have much experience myself, but in such a situation I would
> recommend either increasing buffer size, or linking capture and
> playback devices with snd_pcm_link().

Thanks for the input.  In the end, I hacked up a version of the
test/latency.c to do what I needed.  I think the root of the issue is
that ALSA behaves badly if both the period and buffer sizes/times are
configured, and the values provided do not match up (in terms of the
buffer size relative to the period size).

Anyway, I've got it working now, so thanks anyway!

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com


More information about the Alsa-devel mailing list