triggerbox: only require a MIDI output if the data type is MIDI

This was a thinko that occured when I added the sidechain for audio tracks to handle
trigger input
This commit is contained in:
Paul Davis
2021-12-13 16:50:31 -07:00
parent 0fcc873ec5
commit 5f810843bb

View File

@@ -1760,7 +1760,7 @@ bool
TriggerBox::can_support_io_configuration (const ChanCount& in, ChanCount& out)
{
out.set_audio (std::max (out.n_audio(), 2U)); /* for now, enforce stereo output */
if (_sidechain) {
if (_data_type == DataType::MIDI) {
out.set_midi (std::max (out.n_midi(), 1U));
}
return true;