Re: non-blocking mode example

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

 



If I use a higher timeout than 0 with poll, the stream starts without snd_pcm_wait().

Now I get these snd_pcm_writei errors:

stop: File descriptor in bad state
pause: ok
play (after pause): Resource temporarily unavailable

Regards
Thomas


Am 17.08.2017 um 18:03 schrieb ThomasJF:
Without snd_pcm_wait() I get an open error (Device or resource busy).

In short I have inside the loop:

poll(ufds, 2, 0);
snd_pcm_wait()
snd_pcm_writei(...)

Regards
Thomas


Am 17.08.2017 um 16:48 schrieb Clemens Ladisch:
ThomasJF wrote:
now it is working with poll and the two fds. Also pause, play and stop.

If it stops, the snd_pcm_wait in my loop returns a negative error code
Why are you calling snd_pcm_wait() when you already have poll()?


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


_______________________________________________
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