-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thread_init callback is called multiple times #104
Comments
Thanks for filing the issue. I observed this on my system using libjack2. The crate's documentation says it should be called only once, but this was just copied from the JACK API Docs: http://jackaudio.org/files/docs/html/group__ClientCallbacks.html#gad5a6904292f5c9790223c18aeab202bf I'm not sure what the proper behavior is, but the issue should be reported to the JACK developers. |
Oh, wait, I think I got it. One headliner feature of jack2, which I also use, is that it supports multiple audio processing threads. What I did not realize is that for process isolation reasons, it may actually need to spawn multiple audio threads per client in order to achieve this result. If that is the issue, then it's just a matter of clarifying the thread_init_callback documentation. EDIT: And indeed, on my machine, printing
|
Note that if there are multiple audio threads and they can work concurrently, some aspects of the |
Since We should also update the example to use crossbeam::channel for communication since std channels are not |
Requiring |
Can you clarify what you mean by that ?
This is indeed consistent with one of the last footnotes at the end of this jack1 vs jack2 comparison, but not with the fact that my thread_init_callback was called from three different threads above. Not sure what to make of all this honestly, it would be great if a jack2 dev could clarify the situation here. |
* using Arc is not an option because its blocking wait is not realtime thread safe But never mind that, I just found out that |
Not sure why...
The text was updated successfully, but these errors were encountered: