Re: non-blocking mode example

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

 



ThomasJF wrote:
> Now I have a do-while loop with select.

Better use poll(); select() is cumbersome with the ALSA's API.

> To get the tcp-commands for stop/pause:
>
> 1.) Do I have to adapt the tcp-commands inside this loop or...
>
> 2.) Do I have to work with any poll descriptors (which?)

These function allow to wait for multiple file descriptors to become
ready.  So wait for all the fds from the ALSA device _and_ the fd of
the socket.


Regards,
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