Calculating delay tail – DSP and Plugin Development Forum

Another perhaps naive question. I’m looking at some of the example plugins for CLAP, and I see locking going on in the UI thread and the process thread. It makes sense to me since both threads can change parameter values (the controls the user interacts with on the UI thread and the host on the process thread).

Locking is something I shied away from in my VST days. I tried it once but got complaints about stuttering (I probably implemented it wrong) with very small buffer sizes, so I removed it, without, as far as I can tell, any negative effects.

I’m running things through my head and while locking makes sense in the abstract, I don’t see anything terrible happening in my plugin, which is a very simple plugin, without it.

At any rate, I’d like to get some thoughts on this. I’m close to putting my code up on github, and I’d like for it to be an example of a good CLAP plugin or at least a good starting point for one. This is one of the last issues I need to sort out.

Read more here: Source link