<br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 8:05 PM, David Robillard <span dir="ltr"><<a href="mailto:d@drobilla.net">d@drobilla.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, 2011-11-03 at 18:32 -0700, Iain Duncan wrote:<br>
> thanks Dave, that's what I was looking for! Have you used this<br>
> technique yourself? Do you have any suggestions on how that is done<br>
> with non jack systems? And any open source code that uses that<br>
> technique?<br>
<br>
</div>Yes, I use it in Ingen, where all control is via Events.<br>
<br>
Event has three main methods:<br>
<br>
pre_process() - ("prepare") Execute everything in a non-realtime thread<br>
that has to happen before execution in the audio thread<br>
<br>
execute() - ("apply") Execute/apply command in the audio thread<br>
<br>
post_process() - ("finalize") Execute anything that needs to happen<br>
after execution in a non-realtime thread, like clean up and notifying<br>
the UI(s) about changes.<br>
<br>
The only difference non-jack would make is you need some function to<br>
tell you roughly what audio time it is you can call from another thread.<br></blockquote><div><br></div><div>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)</div>
<div><br></div><div>thanks</div><div>Iain</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
-dr<br>
<br>
<br>
<br>
</font></blockquote></div><br>