25 May
2009
25 May
'09
9:49 a.m.
Cristian Morales Vega wrote:
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 any samples have been written successfully, snd_pcm_writei() returns that number of samples. You get a negative result only if no samples have been written.
HTH Clemens