#include <string>
-#include <sigc++/bind.h>
#include "pbd/failed_constructor.h"
#include "pbd/xml++.h"
PortInsert::~PortInsert ()
{
- GoingAway ();
}
void
-PortInsert::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes)
+PortInsert::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes, bool)
{
if (_output->n_ports().n_total() == 0) {
return;
goto out;
}
- _out->run (bufs, start_frame, end_frame, nframes);
+ _out->run (bufs, start_frame, end_frame, nframes, true);
_input->collect_input (bufs, nframes, ChanCount::ZERO);
out:
{
bool ret = Processor::set_name (name);
- ret = (_input->set_name (name) || _output->set_name (name));
+ ret = (ret && _input->set_name (name) && _output->set_name (name));
return ret;
}
+
+void
+PortInsert::activate ()
+{
+ IOProcessor::activate ();
+
+ _out->activate ();
+}
+
+void
+PortInsert::deactivate ()
+{
+ IOProcessor::deactivate ();
+
+ _out->deactivate ();
+}