Is it safe to work with static variables in functions? For example, if I use this variable in the OnParamChange function
Code:
void VSTCLASS::OnParamChange(int id) {
IMutexLock lock(this);
static float last_val;
....
If the user loads multiple instances of my plugin on the same Host, is there a risk that the variable will become global for all these instances? Since I use the same name for the class and the same variable name?