/*
- Copyright (C) 2000,2007 Paul Davis
+ Copyright (C) 2000,2007 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
, _out (new Delivery (s, _output, mm, _name, Delivery::Insert))
{
- if (set_state (node)) {
+ if (set_state (node, Stateful::loading_state_version)) {
throw failed_constructor();
}
}
int
-PortInsert::set_state(const XMLNode& node)
+PortInsert::set_state (const XMLNode& node, int version)
{
XMLNodeList nlist = node.children();
XMLNodeIterator niter;
error << _("XML node describing port insert is missing the `type' field") << endmsg;
return -1;
}
-
+
if (prop->value() != "port") {
error << _("non-port insert XML used for port plugin insert") << endmsg;
return -1;
break;
}
}
-
- Processor::set_state (*insert_node);
+
+ Processor::set_state (*insert_node, version);
return 0;
}
-ARDOUR::nframes_t
+ARDOUR::nframes_t
PortInsert::signal_latency() const
{
/* because we deliver and collect within the same cycle,