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 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel