{
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;
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)
LADSPA_PortDescriptor
LadspaPlugin::port_descriptor (uint32_t i) const
{
- if (i < _descriptor->PortCount) {
+ if (i < _descriptor->PortCount) {
return _descriptor->PortDescriptors[i];
}
-
+
warning << "LADSPA plugin port index " << i << " out of range." << endmsg;
return 0;
}
-
-
+
+