#include <unistd.h>
#include <sstream>
-#include <sigc++/bind.h>
#include "pbd/xml++.h"
#include "pbd/enumwriter.h"
IOProcessor::~IOProcessor ()
{
- notify_callbacks ();
}
void
int
IOProcessor::set_state (const XMLNode& node, int version)
{
+ if (version < 3000) {
+ return set_state_2X (node, version);
+ }
+
const XMLProperty *prop;
const XMLNode *io_node = 0;
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
const XMLProperty* prop;
if ((prop = (*niter)->property ("name")) != 0) {
- if (prop->value() == _name) {
+ if (_name == prop->value()) {
if ((prop = (*niter)->property ("direction")) != 0) {
if (prop->value() == instr) {
io_node = (*niter);
if ((*niter)->name() == "IO") {
const XMLProperty* prop;
if ((prop = (*niter)->property ("name")) != 0) {
- if (prop->value() == _name) {
+ if (_name == prop->value()) {
if ((prop = (*niter)->property ("direction")) != 0) {
if (prop->value() == outstr) {
io_node = (*niter);
return 0;
}
+int
+IOProcessor::set_state_2X (const XMLNode& node, int version)
+{
+ _own_input = _own_output = true;
+
+ Processor::set_state_2X (node, version);
+
+ return 0;
+}
+
void
-IOProcessor::silence (nframes_t nframes)
+IOProcessor::silence (framecnt_t nframes)
{
if (_own_output && _output) {
_output->silence (nframes);
}
}
+void
+IOProcessor::increment_port_buffer_offset (pframes_t offset)
+{
+ if (_own_output && _output) {
+ _output->increment_port_buffer_offset (offset);
+ }
+}
+
ChanCount
IOProcessor::natural_output_streams() const
{