diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-01-30 07:40:13 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-01-30 07:40:13 +0000 |
commit | 70b939da4f9d4097160e32f2373a7a5ff8f4957f (patch) | |
tree | 5917e5847c75e441c9df550d5101352d18e8286f /libs/ardour/send.cc | |
parent | ee62ee07d39f51ba1b70f390dc2158c57f54a572 (diff) |
first pass at internal sends. this is a very tentative work in progress, and it is possible that major changes may follow in the near future. it is certainly not complete, but the fundamental changes to Port/Buffer operation merit a commit at this point
git-svn-id: svn://localhost/ardour2/branches/3.0@4464 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/send.cc')
-rw-r--r-- | libs/ardour/send.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index 58352a5dfe..d562ddff3f 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -140,7 +140,7 @@ Send::set_state(const XMLNode& node) if ((*niter)->name() == "IOProcessor") { insert_node = *niter; } else if ((*niter)->name() == X_("Automation")) { - _io->set_automation_state (*(*niter), Evoral::Parameter(GainAutomation)); + // _io->set_automation_state (*(*niter), Evoral::Parameter(GainAutomation)); } } @@ -165,10 +165,10 @@ Send::run_in_place (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, _io->deliver_output (sendbufs, start_frame, end_frame, nframes, offset); if (_metering) { - if (_io->_gain == 0) { - _io->_meter->reset(); + if (_io->effective_gain() == 0) { + _io->peak_meter().reset(); } else { - _io->_meter->run_in_place(_io->output_buffers(), start_frame, end_frame, nframes, offset); + _io->peak_meter().run_in_place(_io->output_buffers(), start_frame, end_frame, nframes, offset); } } @@ -176,7 +176,7 @@ Send::run_in_place (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, _io->silence (nframes, offset); if (_metering) { - _io->_meter->reset(); + _io->peak_meter().reset(); } } } |