Am Dienstag, 11. September 2018 19:13 CEST, Len Ovens <len(a)ovenwerks.net> schrieb:
On Tue, 11 Sep 2018, Jonathan E. Brickman wrote:
The current software thought is to have both
sides have two threads: one thread
running callback to JACK, the other handling UDP/TCP, the threads communicating
by Python FIFO queues, the UDP/TCP thread being constrained by 31.5kHz wait-state
Use jack ring buffers for thread communication. They are rt safe. I have
used them with a midi to qwerty keyboard bridge. (see:
http://www.ovenwerks.net/software/midikb.html )
That's C-code, iirc. The problem with python: the interpreter has a global lock (the
infamous GIL). So, unless you write your jack callback in C/C++ your code might block.
Cheers, RalfD
--
Len Ovens
www.ovenwerks.net
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev(a)lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev