Re: non-blocking mode example

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

 



Thank you Clemens,

but while the stream is running the snd_pcm_poll_descriptors_count couldn't change - or...?
Then it should be inside the loop.

Regards
Thomas



Am 18.08.2017 um 12:37 schrieb Clemens Ladisch:
ThomasJF wrote:
I could change the code (attached a short part)
This mailing list does not have attachments.

After stop, the stream stops and everything looks good(?), but with this message from snd_pcm_writei:
-77 (-EBADFD)
You cannot write to a device in the stopped state. This is to be expected


And you must actually use the return value of snd_pcm_poll_descriptors_count()
(there are device types with more than one fd), and you must not look at the
returned event flags except with snd_pcm_poll_descriptors_revents().


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


_______________________________________________
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