Hi there !
I see a lot of CachedValue’s in the bundled Plugins, and I was wondering what’s the right way to read/write a te::Plugin parameter in realtime. I don’t think CachedValue is thread-safe ?
I just need bool/int/float/double.
Thanks!
E.
Hi there !
I see a lot of CachedValue’s in the bundled Plugins, and I was wondering what’s the right way to read/write a te::Plugin parameter in realtime. I don’t think CachedValue is thread-safe ?
I just need bool/int/float/double.
Thanks!
E.
No, the best thing to do is go via the AutomatableParameters in the class.
There’s some helpers to convert to int types at the bottom of the AutomatableParameter class: getIntParamValue/getBoolParamValue/getTypedParamValue