[LAD] Re: Status of Pipewire

Wim Taymans <[email protected]>
Newsgroups gmane.linux.audio.devel
Message-ID <CAEza8_7OQsgytvmag-vL8VvWkynx63tEd141EtO8=WjwAYydgw@mail.gmail.com>
On Fri, 10 Feb 2023 at 23:46, Fons Adriaensen <[email protected]> wrote:
>
> On Thu, Feb 09, 2023 at 01:34:52PM +0100, Wim Taymans wrote:
>
> > real JACK is more mature and does things differently (mostly device
> > wakeup with IRQ instead of timers)
>
> The real difference between the two methods is 'sample count'
> versus 'time' as the source of the event that starts a period.
>
> I always wondered why one would use a timer, it just amounts
> to polling. Suppose you look every 1 ms to check if there

You don't need to use polling with timerfd, just set the timeout
according to some clock,
add the timerfd to some poll loop and it wakes up on time. Very much
like how ALSA wakes
you up when a period expires.

Wim
> are enough samples for a period. That means you can be up
> to 1 ms late. Compare that to the period time of 1.33 ms
> when using 64 samples / 48 kHz. Up to 3/4 of the available
> time to compute a period could be lost...
>
> Or am I missing something ?
>
> Ciao,
>
> --
> FA
>
_______________________________________________
Linux-audio-dev mailing list -- linux-audio-dev-cunTk1MwBs/[email protected]
To unsubscribe send an email to linux-audio-dev-leave-cunTk1MwBs/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.