Is it safe to use CachedValue<>'s assignment operator and/or setValue method from inside an AudioProcessor::processBlock?
Judging from
template <typename Type>
inline void CachedValue<Type>::setValue (const Type& newValue, UndoManager* undoManagerToUse)
{
if (cachedValue != newValue || isUsingDefault())
{
cachedValue = newValue;
targetTree.setProperty (targetProperty, VariantConverter<Type>::toVar (newValue), undoManagerToUse);
}
}
I presume the answer is no?
good and learn new things…
besides valuetree there a cachedvalue similar to it with thread safe