Re: [LAD] interrupt-drive ALSA returning buffers too small

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Thu Sep 09 2010 - 10:31:42 EEST

Gabriel M. Beddingfield wrote:
> I've set alsa to wake me up every N frames.

Setting the period size makes this possible. The avail_min parameter
only prevents waveups when less than N frames are available.

> However, when I awake, I find that I often have fewer than N frames
> available:
>
> snd_pcm_sw_params_set_avail_min (playback_handle, sw_params, N)
>
> err = snd_pcm_wait(playback_handle, 1000);
> frames_to_deliver = snd_pcm_avail_update(playback_handle);
> assert(frames_to_deliver >= N);

In theory, this should work. Which PCM plugin (device name) are you
using?

Regards,
Clemens
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Thu Sep 9 12:15:02 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 09 2010 - 12:15:03 EEST