for mixed-i/o show HW ports of both types in the matrix

e.g. sidechain inputs with audio and midi.
This commit is contained in:
Robin Gareus 2016-04-28 02:52:05 +02:00
parent 3d07cfce10
commit 11b2bcbde3

View file

@ -511,7 +511,18 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
lpnc += ':';
vector<string> ports;
if (AudioEngine::instance()->get_ports ("", type, inputs ? IsInput : IsOutput, ports) > 0) {
if (type == DataType::NIL) {
vector<string> p1;
AudioEngine::instance()->get_ports ("", DataType::AUDIO, inputs ? IsInput : IsOutput, ports);
AudioEngine::instance()->get_ports ("", DataType::MIDI, inputs ? IsInput : IsOutput, p1);
for (vector<string>::const_iterator s = p1.begin(); s != p1.end(); ++s) {
ports.push_back (*s);
}
} else {
AudioEngine::instance()->get_ports ("", type, inputs ? IsInput : IsOutput, ports);
}
if (ports.size () > 0) {
for (vector<string>::const_iterator s = ports.begin(); s != ports.end(); ) {