use correct signal to select route from generic MIDI, and add explanatory comment
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 17 May 2016 19:45:56 +0000 (15:45 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:43 +0000 (15:30 -0400)
libs/surfaces/generic_midi/midifunction.cc

index 1f3535f22c213bd33ffb9a5ec2ee1c1eb83054e0..4b5faa7018667745748232f3b13eaf6c3a3df959 100644 (file)
@@ -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;