_send_to->remove_send_from_internal_return (this);
}
- _send_to = sendto;
+ _send_to = sendto;
- _send_to->add_send_to_internal_return (this);
+ _send_to->add_send_to_internal_return (this);
mixbufs.ensure_buffers (_send_to->internal_return()->input_streams(), _session.get_block_size());
mixbufs.set_count (_send_to->internal_return()->input_streams());
reset_panner ();
- set_name (sendto->name());
- _send_to_id = _send_to->id();
+ set_name (sendto->name());
+ _send_to_id = _send_to->id();
- target_connections.drop_connections ();
+ target_connections.drop_connections ();
- _send_to->DropReferences.connect_same_thread (target_connections, boost::bind (&InternalSend::send_to_going_away, this));
- _send_to->PropertyChanged.connect_same_thread (target_connections, boost::bind (&InternalSend::send_to_property_changed, this, _1));
- _send_to->io_changed.connect_same_thread (target_connections, boost::bind (&InternalSend::target_io_changed, this));
+ _send_to->DropReferences.connect_same_thread (target_connections, boost::bind (&InternalSend::send_to_going_away, this));
+ _send_to->PropertyChanged.connect_same_thread (target_connections, boost::bind (&InternalSend::send_to_property_changed, this, _1));
+ _send_to->io_changed.connect_same_thread (target_connections, boost::bind (&InternalSend::target_io_changed, this));
- return 0;
+ return 0;
}
void
void
InternalSend::send_to_going_away ()
{
- target_connections.drop_connections ();
+ target_connections.drop_connections ();
_send_to.reset ();
_send_to_id = "0";
}
mixbufs.ensure_buffers (_send_to->internal_return()->input_streams(), nframes);
}
- return 0;
+ return 0;
}
void
}
XMLNode&
-InternalSend::state (bool full)
+InternalSend::state ()
{
- XMLNode& node (Send::state (full));
+ XMLNode& node (Send::state ());
/* this replaces any existing "type" property */
return node;
}
-XMLNode&
-InternalSend::get_state()
-{
- return state (true);
-}
-
int
InternalSend::set_state (const XMLNode& node, int version)
{
return 0;
}
- boost::shared_ptr<Route> sendto;
+ boost::shared_ptr<Route> sendto;
if ((sendto = _session.route_by_id (_send_to_id)) == 0) {
error << string_compose (_("%1 - cannot find any track/bus with the ID %2 to connect to"), display_name(), _send_to_id) << endmsg;
return -1;
}
- return use_target (sendto);
+ return use_target (sendto);
}
bool