
17 Apr
2013
17 Apr
'13
10 p.m.
----- 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