13
0

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
This commit is contained in:
Paul Davis 2016-09-21 23:02:38 -05:00
parent c21332df71
commit b475fda66e

View File

@ -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);
}