Re: [LAD] timing the processing of queues between engine and ui threads?

From: Iain Duncan <iainduncanlists@email-addr-hidden>
Date: Sun Nov 06 2011 - 00:39:27 EET

On Thu, Nov 3, 2011 at 8:05 PM, David Robillard <d@email-addr-hidden> wrote:

> On Thu, 2011-11-03 at 18:32 -0700, Iain Duncan wrote:
> > thanks Dave, that's what I was looking for! Have you used this
> > technique yourself? Do you have any suggestions on how that is done
> > with non jack systems? And any open source code that uses that
> > technique?
>
> Yes, I use it in Ingen, where all control is via Events.
>
> Event has three main methods:
>
> pre_process() - ("prepare") Execute everything in a non-realtime thread
> that has to happen before execution in the audio thread
>
> execute() - ("apply") Execute/apply command in the audio thread
>
> post_process() - ("finalize") Execute anything that needs to happen
> after execution in a non-realtime thread, like clean up and notifying
> the UI(s) about changes.
>
> The only difference non-jack would make is you need some function to
> tell you roughly what audio time it is you can call from another thread.
>

Does one use the system clock for that? Is it accurate enough? Any further
elaboration would be great. ( But I appreciate all the help so far either
way)

thanks
Iain

>
> -dr
>
>
>
>

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sun Nov 6 00:15:01 2011

This archive was generated by hypermail 2.1.8 : Sun Nov 06 2011 - 00:15:01 EET