Rory, are you using Ubuntu Studio 16.04? How are you launching Jack? First of all, as I said, if I use Jack then sr must equal Jack’s sampling rate. Otherwise a simple sine sounds somewhere near an octave higher and distorted. That’s normal. But I also hear cracks even if sr is properly configured.
The recordings (fout+monitor) sound fine. Pure Csound with -+rtaudio=jack works fine. The problem must be when JUCE is talking to Jack.
Oh, and I have a question, is it normal that while selecting Jack in Cabbage, Csound says “rtaudio alsa module enabled”? I know you are accessing the sound buffer through GetSpout(), but does ALSA still has to be involved?
EDIT: I’ve found a hack for my problem. I set all the sample rates (JACK, ALSA Loopback and sr) to the same frequency. Then I configure Cabbage to use ALSA, but in the CsOptions I pass -odac -+rtaudio=jack. After that I disconnect the patch from the Loopback to system. That way I can use Csound’s Jack module. No more cracks in the sound. I hope we can solve the real problem though.