13
0

indicate MIDI port names (vs audio system ports)

This commit is contained in:
Robin Gareus 2015-03-12 15:56:26 +01:00
parent 523509c389
commit 37a9ef0501

View File

@ -1237,10 +1237,10 @@ MixerStrip::update_io_button (boost::shared_ptr<ARDOUR::Route> route, Width widt
} else if (connection_name.find("system:midi_") == 0) { } else if (connection_name.find("system:midi_") == 0) {
if (for_input) { if (for_input) {
// "system:midi_capture_123" -> "123" // "system:midi_capture_123" -> "123"
system_port = connection_name.substr(20); system_port = "M " + connection_name.substr(20);
} else { } else {
// "system:midi_playback_123" -> "123" // "system:midi_playback_123" -> "123"
system_port = connection_name.substr(21); system_port = "M " + connection_name.substr(21);
} }
if (system_ports.empty()) { if (system_ports.empty()) {