Re: snd_pcm_writei() return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux