summaryrefslogtreecommitdiff
path: root/libs/ardour/delivery.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-05-30 21:37:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-05-30 21:37:58 +0000
commitde9e216cb5fcc08b6c39071d7cef031673aa67da (patch)
tree696922c23551b5609277be3dbbc4b1d378ad6fc2 /libs/ardour/delivery.cc
parent14a80c091d850045bd35c56d5d378bfdd2fbe4f9 (diff)
(1) push a locate all the way through the processing heirarchy so that MIDI output ports can resolve any notes currently playing (2) remove MidiStateTracker from MidiPort and use a fixed set of MIDI messages (sustain-off and all-notes-off, per channel) to do note resolution (3) move note resolution caused by a LoopEvent psuedo-event to within the main MidiPort::flush_output() loop, so that we resolve (turn off) Notes that come before the loop point, rather than send them out after the note resolution messages
git-svn-id: svn://localhost/ardour2/branches/3.0@9635 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/delivery.cc')
-rw-r--r--libs/ardour/delivery.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc
index efdb4d9ad0..31337e7e83 100644
--- a/libs/ardour/delivery.cc
+++ b/libs/ardour/delivery.cc
@@ -479,6 +479,18 @@ Delivery::transport_stopped (framepos_t now)
}
}
+void
+Delivery::realtime_locate ()
+{
+ if (_output) {
+ PortSet& ports (_output->ports());
+
+ for (PortSet::iterator i = ports.begin(); i != ports.end(); ++i) {
+ (*i).realtime_locate ();
+ }
+ }
+}
+
gain_t
Delivery::target_gain ()
{