for (uint32_t i = 0; i < (uint32_t) defs->count; ++i) {
if (parameter_is_input (defs->items[i].pid)) {
set_parameter(defs->items[i].pid, defs->items[i].value);
+ PresetPortSetValue (defs->items[i].pid, defs->items[i].value); /* EMIT SIGNAL */
}
}
lrdf_free_setting_values(defs);
assert (index);
assert (value);
LocaleGuard lg;
- set_parameter (atoi (index->value().c_str()), atof (value->value().c_str ()));
+ const uint32_t p = atoi (index->value().c_str());
+ const float v = atof (value->value().c_str ());
+ set_parameter (p, v);
+ PresetPortSetValue (p, v); /* EMIT SIGNAL */
}
}
return Plugin::load_preset(r);
const uint32_t port_index = self->port_index(port_symbol);
if (port_index != (uint32_t)-1) {
self->set_parameter(port_index, *(const float*)value);
+ self->PresetPortSetValue (port_index, *(const float*)value); /* EMIT SIGNAL */
}
}
assert (index);
assert (value);
-
- set_parameter (atoi (index->value().c_str()), atof (value->value().c_str ()));
+ const uint32_t p = atoi (index->value().c_str());
+ const float v = atof (value->value().c_str ());
+ set_parameter (p, v);
+ PresetPortSetValue (p, v); /* EMIT SIGNAL */
}
}
return true;