Set param ok from audio thread?

Of course when we want to set a param from the UI we must use APP->engine->setParm(…). I know that from the audio thread we of course can get the param directly without doing that. But is it OK to use get/setParam from the audio thread?

The context is that I have some code that sometimes is in the audio thread, and sometimes not. It’s convenient to use get/setParam all the time.

From your DSP kernel, you can directly set params[...].setValue().
Engine::setParam() stops smoothing the param if it is currently being smoothed by the Engine.

1 Like