#include "pbd/compose.h"
#include "pbd/error.h"
+#include "pbd/locale_guard.h"
#include "pbd/xml++.h"
#include "pbd/stacktrace.h"
LadspaPlugin::add_state (XMLNode* root) const
{
XMLNode *child;
- LocaleGuard lg;
for (uint32_t i = 0; i < parameter_count(); ++i){
XMLNodeConstIterator iter;
XMLNode *child;
#endif
- LocaleGuard lg;
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;
if (LADSPA_IS_HINT_BOUNDED_BELOW(prh.HintDescriptor)) {
- desc.min_unbound = false;
if (LADSPA_IS_HINT_SAMPLE_RATE(prh.HintDescriptor)) {
desc.lower = prh.LowerBound * _session.frame_rate();
} else {
desc.lower = prh.LowerBound;
}
} else {
- desc.min_unbound = true;
desc.lower = 0;
}
if (LADSPA_IS_HINT_BOUNDED_ABOVE(prh.HintDescriptor)) {
- desc.max_unbound = false;
if (LADSPA_IS_HINT_SAMPLE_RATE(prh.HintDescriptor)) {
desc.upper = prh.UpperBound * _session.frame_rate();
} else {
}
} else {
if (LADSPA_IS_HINT_TOGGLED (prh.HintDescriptor)) {
- desc.max_unbound = false;
desc.upper = 1;
} else {
- desc.max_unbound = true;
desc.upper = 4; /* completely arbitrary */
}
}