[alsa-devel] snd_pcm_writei() return value
Cristian Morales Vega
cmorve69 at yahoo.es
Thu May 21 20:26:06 CEST 2009
2009/5/21 Jaroslav Kysela <perex at perex.cz>:
> On Thu, 21 May 2009, Cristian Morales Vega wrote:
>> ? And still, in this case an interrupt would be handled by
>> snd_pcm_recover() (written < 0) or by the "else" code?
>
> -EINTR is just noop in recover() function:
>
> if (err == -EINTR) /* nothing to do, continue */
> return 0;
But if an interrupt happened, it could be that some samples were
written and others no, true? If only -EINTR is returned, how I know
how many of them I still need to write? If I write them all again the
sound output will be funny.
More information about the Alsa-devel
mailing list