[alsa-devel] snd_pcm_avail() and snd_pcm_avail_update() always returns buffer_size
Nate Case
ncase at xes-inc.com
Wed Apr 17 21:00:52 CEST 2013
----- Original Message -----
> I'm debugging an issue where both snd_pcm_avail_update() and
> snd_pcm_avail() are always returning buffer_size, even after
> successfully calling snd_pcm_writei() repeatedly.
>
> This is causing problems when I first start playback. My goal was to
> fill up the playback buffer until it's almost full when first
> starting,
> and then enter my regular playback loop where I write period_size
> at a time.
>
[snip]
Replying to my own thread here:
I looked into this more closely again today, and found an unrelated bug
in my application causing the strange behavior I was observing. It
turned out that ALSA was behaving exactly as expected for what was
going on.
Thanks,
Nate
More information about the Alsa-devel
mailing list