diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-17 15:45:56 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:43 -0400 |
commit | a2704dbff8ccfc39b863279629b347fb008b8729 (patch) | |
tree | 153b393c027443a6236fbbb92358adb5344b851c /libs/surfaces/generic_midi | |
parent | 8b48aff077383320c7a077ca5fcbad28062dfdcc (diff) |
use correct signal to select route from generic MIDI, and add explanatory comment
Diffstat (limited to 'libs/surfaces/generic_midi')
-rw-r--r-- | libs/surfaces/generic_midi/midifunction.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/surfaces/generic_midi/midifunction.cc b/libs/surfaces/generic_midi/midifunction.cc index 1f3535f22c..4b5faa7018 100644 --- a/libs/surfaces/generic_midi/midifunction.cc +++ b/libs/surfaces/generic_midi/midifunction.cc @@ -165,9 +165,14 @@ MIDIFunction::execute () case Select: if (!_argument.empty()) { + /* this uses only the numerical orderpart of a + PresentionInfo, because it only sets the lower 32 + bits of a 64 bit value. This will be interpreted + as a request to select only Routes. + */ uint32_t rid; sscanf (_argument.c_str(), "%d", &rid); - _ui->SetRouteSelection (rid); + _ui->SetStripableSelection (rid); DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("Function: SetRouteSelection = %1\n", rid)); } break; |