#include "pbd/stl_delete.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
#include <locale.h>
using namespace std;
{
XMLNode *child;
char buf[32];
- LocaleGuard lg (X_("C"));
+ LocaleGuard lg;
for (uint32_t i = 0; i < parameter_count(); ++i){
#ifndef NO_PLUGIN_STATE
XMLNodeList nodes;
- XMLProperty *prop;
+ XMLProperty const * prop;
XMLNodeConstIterator iter;
XMLNode *child;
const char *port;
const char *data;
uint32_t port_id;
#endif
- LocaleGuard lg (X_("C"));
+ LocaleGuard lg;
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;
{
#ifndef NO_PLUGIN_STATE
XMLNodeList nodes;
- XMLProperty *prop;
+ XMLProperty const * prop;
XMLNodeConstIterator iter;
XMLNode *child;
const char *port;
const char *data;
uint32_t port_id;
#endif
- LocaleGuard lg (X_("C"));
+ LocaleGuard lg;
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;
desc.upper = prh.UpperBound;
}
} else {
- desc.max_unbound = true;
- desc.upper = 4; /* completely arbitrary */
+ if (LADSPA_IS_HINT_TOGGLED (prh.HintDescriptor)) {
+ desc.max_unbound = false;
+ desc.upper = 1;
+ } else {
+ desc.max_unbound = true;
+ desc.upper = 4; /* completely arbitrary */
+ }
}
if (LADSPA_IS_HINT_HAS_DEFAULT (prh.HintDescriptor)) {
int
LadspaPlugin::connect_and_run (BufferSet& bufs,
+ framepos_t start, framepos_t end, double speed,
ChanMapping in_map, ChanMapping out_map,
pframes_t nframes, framecnt_t offset)
{
- Plugin::connect_and_run (bufs, in_map, out_map, nframes, offset);
+ Plugin::connect_and_run (bufs, start, end, speed, in_map, out_map, nframes, offset);
cycles_t now;
cycles_t then = get_cycles ();