<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 10:04 AM, Stefano D'Angelo <span dir="ltr"><<a href="mailto:zanga.mail@gmail.com" target="_blank">zanga.mail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div class="">
<br>
</div>Well, here <a href="http://jackaudio.org/files/docs/html/group__ClientCallbacks.html" target="_blank">http://jackaudio.org/files/docs/html/group__ClientCallbacks.html</a><br>
I only see that process has to be RT-safe and thread-init needs not,<br>
but regarding others I have no clue. Is that stated somewhere else or<br>
am I missing something?<br></blockquote><div><br></div><div>if it doesn't say it has to be RT-safe, it doesn't have to be. That ought to be obbvious also from the note on Jack2's design. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class=""><br>
> The threading design described above is specific to Jack2. Jack1 delivers<br>
> all callbacks to the same thread (which necessarily means that processing<br>
> audio is blocked by other callbacks). This is one of the major (and largely<br>
> hidden) design differences between Jack1 and Jack2.<br>
<br>
</div>What truly interests me is whether non-process callbacks can block. It<br>
seems that's not the case with Jack1 then?<br><div class=""></div></blockquote><div><br>Jack1 acccepts that other callbacks can block, and that doing so will interrupt audio.<br></div><div> <br>I wonder what the jack_set_sample_rate_callback() is for then, but at<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
this point I don't care.<br></blockquote><div><br></div><div>it was part of the API very early on, then we decided we didn't want to impose the possibility of change on clients. as time goes on, it becomes clear (to me at least) that we should have implemented it. <br>
</div></div></div></div>