From 20342cf2644fee7b04d6cfdc4fc686897837a01b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Jul 2009 03:23:57 +0000 Subject: first part of fixing up send/return metering ; make send-controlling faders work ; fixes from 2.X for key editor and untranslatable string; use standard name for surfaces lib version in wiimote wscript git-svn-id: svn://localhost/ardour2/branches/3.0@5400 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/send.cc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'libs/ardour/send.cc') diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index a4db60fc68..ea4c16a416 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -65,6 +65,24 @@ Send::~Send () GoingAway (); } +void +Send::activate () +{ + _amp->activate (); + _meter->activate (); + + Processor::activate (); +} + +void +Send::deactivate () +{ + _amp->deactivate (); + _meter->deactivate (); + + Processor::deactivate (); +} + void Send::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes) { @@ -155,6 +173,16 @@ Send::can_support_io_configuration (const ChanCount& in, ChanCount& out) const return true; } +bool +Send::configure_io (ChanCount in, ChanCount out) +{ + if (!_amp->configure_io (in, out) || !_meter->configure_io (in, out)) { + return false; + } + + return Processor::configure_io (in, out); +} + /** Set up the XML description of a send so that its name is unique. * @param state XML send state. * @param session Session. -- cgit v1.2.3