From: Paul Davis Date: Thu, 22 Sep 2016 04:02:38 +0000 (-0500) Subject: PortManager::silence() should not clear data in AsyncMIDIPorts X-Git-Tag: 5.4~224 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=b475fda66e1c06a86dc2680a7777862393d45ffe;p=ardour.git 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 --- 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(i->second)) { + continue; + } if (i->second->sends_output()) { i->second->get_buffer(nframes).silence(nframes); }