#include <algorithm>
#include "pbd/xml++.h"
+#include "pbd/boost_debug.h"
#include "ardour/amp.h"
#include "ardour/send.h"
using namespace PBD;
using namespace std;
-Send::Send (Session& s, boost::shared_ptr<MuteMaster> mm, Role r)
- : Delivery (s, mm, string_compose (_("send %1"), (_bitslot = s.next_send_id()) + 1), r)
+Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMaster> mm, Role r)
+ : Delivery (s, p, mm, string_compose (_("send %1"), (_bitslot = s.next_send_id()) + 1), r)
, _metering (false)
{
+ boost_debug_shared_ptr_mark_interesting (this, "send");
+
_amp.reset (new Amp (_session));
_meter.reset (new PeakMeter (_session));
}
_amp->deactivate ();
_meter->deactivate ();
_meter->reset ();
-
+
Processor::deactivate ();
}
if (version < 3000) {
return set_state_2X (node, version);
}
-
+
const XMLProperty* prop;
Delivery::set_state (node, version);
return -1;
}
- XMLProperty const * prop = (*j)->property X_("name");
+ XMLProperty const * prop = (*j)->property (X_("name"));
if (!prop) {
return -1;
}
return true;
}
-/** Caller must not hold process lock */
+/** Caller must hold process lock */
bool
Send::configure_io (ChanCount in, ChanCount out)
{
return false;
}
- if (_output) {
- Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock());
- _output->ensure_io (out, false, 0);
- }
-
if (!Processor::configure_io (in, out)) {
return false;
}