summaryrefslogtreecommitdiff
path: root/libs/ardour/port_manager.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-09-21 23:02:38 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-09-21 23:02:38 -0500
commitb475fda66e1c06a86dc2680a7777862393d45ffe (patch)
treecf0c5bf6e4ae354bdbf732170ca8d1c5f204f08b /libs/ardour/port_manager.cc
parentc21332df7146008f359ae52918f2695b39c6b3b8 (diff)
PortManager::silence() should not clear data in AsyncMIDIPorts
This data was generated asynchronously and is not required to be "silenced" the way that session data would be. Compare also to the similar tests for sync-related MIDI ports
Diffstat (limited to 'libs/ardour/port_manager.cc')
-rw-r--r--libs/ardour/port_manager.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc
index 10c19a9c67..a5af8f2fe1 100644
--- a/libs/ardour/port_manager.cc
+++ b/libs/ardour/port_manager.cc
@@ -684,6 +684,9 @@ PortManager::silence (pframes_t nframes, Session *s)
if (s && i->second == s->ltc_output_port ()) {
continue;
}
+ if (boost::dynamic_pointer_cast<AsyncMIDIPort>(i->second)) {
+ continue;
+ }
if (i->second->sends_output()) {
i->second->get_buffer(nframes).silence(nframes);
}