Re: [Alsa-user] How to interrupt a blocking call to snd_pcm_writei

2008-10-08 Thread Clemens Ladisch
Florian Winter wrote: I can't derive from the documentation when exactly my poll() call will wake up. It can wake up whenever the device generates an interrupt, i.e., at period boundaries. Is there a way to tell ALSA something like: I want to write at least N frames to the device without

Re: [Alsa-user] How to interrupt a blocking call to snd_pcm_writei

2008-10-06 Thread Florian Winter
Clemens Ladisch wrote: Florian Winter wrote: Suppose, an ALSA playback device is opened in blocking mode, and one thread calls snd_pcm_writei. If the snd_pcm_writei call blocks, because the internal buffer of the ALSA device is full, is there a way by which another thread can interrupt

[Alsa-user] How to interrupt a blocking call to snd_pcm_writei

2008-10-02 Thread Florian Winter
Hi, Suppose, an ALSA playback device is opened in blocking mode, and one thread calls snd_pcm_writei. If the snd_pcm_writei call blocks, because the internal buffer of the ALSA device is full, is there a way by which another thread can interrupt the call, so it returns immediately without writing

Re: [Alsa-user] How to interrupt a blocking call to snd_pcm_writei

2008-10-02 Thread Clemens Ladisch
Florian Winter wrote: Suppose, an ALSA playback device is opened in blocking mode, and one thread calls snd_pcm_writei. If the snd_pcm_writei call blocks, because the internal buffer of the ALSA device is full, is there a way by which another thread can interrupt the call, so it returns