Assuming the Raspberry Pi 4 is fast enough to pull this off (which I don't know, but it might), then maybe tweaking thread priorities would help? Ideally the worker thread needs to be of lower priority than the main audio thread, but higher than any GUI threads.
|