using namespace PBD;
PortInsert::PortInsert (Session& s, Placement p)
- : Redirect (s, string_compose (_("insert %1"), (bitslot = s.next_insert_id()) + 1), p, 1, -1, 1, -1)
+ : IOProcessor (s, string_compose (_("insert %1"), (bitslot = s.next_insert_id()) + 1), p, 1, -1, 1, -1)
{
init ();
- InsertCreated (this); /* EMIT SIGNAL */
+ ProcessorCreated (this); /* EMIT SIGNAL */
}
PortInsert::PortInsert (const PortInsert& other)
- : Redirect (other._session, string_compose (_("insert %1"), (bitslot = other._session.next_insert_id()) + 1), other.placement(), 1, -1, 1, -1)
+ : IOProcessor (other._session, string_compose (_("insert %1"), (bitslot = other._session.next_insert_id()) + 1), other.placement(), 1, -1, 1, -1)
{
init ();
- InsertCreated (this); /* EMIT SIGNAL */
+ ProcessorCreated (this); /* EMIT SIGNAL */
}
void
}
PortInsert::PortInsert (Session& s, const XMLNode& node)
- : Redirect (s, "unnamed port insert", PreFader)
+ : IOProcessor (s, "unnamed port insert", PreFader)
{
if (set_state (node)) {
throw failed_constructor();
}
- InsertCreated (this); /* EMIT SIGNAL */
+ ProcessorCreated (this); /* EMIT SIGNAL */
}
PortInsert::~PortInsert ()
}
void
-PortInsert::run (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, nframes_t nframes, nframes_t offset)
+PortInsert::run_in_place (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, nframes_t nframes, nframes_t offset)
{
if (_io->n_outputs().n_total() == 0) {
return;
XMLNode&
PortInsert::state (bool full)
{
- XMLNode& node = Redirect::state(full);
+ XMLNode& node = IOProcessor::state(full);
char buf[32];
node.add_property ("type", "port");
snprintf (buf, sizeof (buf), "%" PRIu32, bitslot);
const XMLNode* insert_node = &node;
- // legacy sessions: search for child Redirect node
+ // legacy sessions: search for child IOProcessor node
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
- if ((*niter)->name() == "Redirect") {
+ if ((*niter)->name() == "IOProcessor") {
insert_node = *niter;
break;
}
}
- Redirect::set_state (*insert_node);
+ IOProcessor::set_state (*insert_node);
return 0;
}
ARDOUR::nframes_t
-PortInsert::latency()
+PortInsert::signal_latency() const
{
/* because we deliver and collect within the same cycle,
all I/O is necessarily delayed by at least frames_per_cycle().
bool success = (_io->ensure_io (out, in, false, this) == 0);
if (success)
- return Insert::configure_io(in, out);
+ return Processor::configure_io(in, out);
else
return false;
}