{
XMLNode *child;
char buf[16];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
for (uint32_t i = 0; i < parameter_count(); ++i){
const char *data;
uint32_t port_id;
#endif
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;
const char *data;
uint32_t port_id;
#endif
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;
desc.upper = 4; /* completely arbitrary */
}
- if (LADSPA_IS_HINT_INTEGER (prh.HintDescriptor)) {
- desc.step = 1.0;
- desc.smallstep = 0.1;
- desc.largestep = 10.0;
- } else {
- float delta = desc.upper - desc.lower;
- desc.step = delta / 1000.0f;
- desc.smallstep = delta / 10000.0f;
- desc.largestep = delta/10.0f;
- }
-
-
if (LADSPA_IS_HINT_HAS_DEFAULT (prh.HintDescriptor)) {
desc.normal = _default_value(which);
} else {
desc.label = port_names()[which];
desc.scale_points = get_scale_points(which);
+ desc.update_steps();
return 0;
}
return true;
}
+#ifdef HAVE_LRDF
/* XXX: should be in liblrdf */
static void
lrdf_remove_preset (const char* /*source*/, const char *setting_uri)
{
-#ifdef HAVE_LRDF
lrdf_statement p;
lrdf_statement *q;
lrdf_statement *i;
p.predicate = NULL;
p.object = NULL;
lrdf_remove_matches (&p);
-#endif
}
+#endif
void
LadspaPlugin::do_remove_preset (string name)