Re: maintaining fixed latency between output and input?

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

 



On Fri, Sep 26, 2008 at 08:33:19AM +0200, Clemens Ladisch wrote:
> To communicate with other threads, you can use a pipe so that you have
> a file descriptor that can be used with the poll().

now how to get posix message queues available to poll()?  (=

> Aaron J. Grier wrote:
> > combining the output and input snd_pcm_t into a single descriptor
> > list for poll() seems straight-forward, but can I pass this superset
> > list to snd_pcm_poll_descriptors_revents() without it getting
> > confused?
> 
> No, snd_pcm_poll_descriptors_revents() looks at the file descriptors of
> a single device and returns the ready status of that device.

to follow up to myself, I was able to allocate a contiguous array of
struct pollfd, and point ALSA at different sections of it.  the entire
array was handed to poll().  it seems to work as described, and my
timing is now a bit tighter than it previously was.

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@xxxxxxxxxxxxx
_______________________________________________
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