diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-21 03:23:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-21 03:23:57 +0000 |
commit | 20342cf2644fee7b04d6cfdc4fc686897837a01b (patch) | |
tree | cde2cbeb36402a003148c21aa92c1b27c5a418b5 /libs/ardour/send.cc | |
parent | 769e2c3feb2ce30056bfb8ec6eb7ec6a1d4324c6 (diff) |
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
Diffstat (limited to 'libs/ardour/send.cc')
-rw-r--r-- | libs/ardour/send.cc | 28 |
1 files changed, 28 insertions, 0 deletions
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 @@ -66,6 +66,24 @@ Send::~Send () } 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) { if (!_active || _output->n_ports() == ChanCount::ZERO) { @@ -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. |