Ctrl Surfaces: update bound controllables

Note: this only affects surfaces that use mapped_controls, and do
not already subscribe to processors_changed/RouteProcessorChange signal.
This commit is contained in:
Robin Gareus 2024-01-13 16:18:32 +01:00
parent c3ec93997c
commit bfb22e2acc
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
8 changed files with 29 additions and 3 deletions

View file

@ -980,7 +980,7 @@ GenericMidiControlProtocol::reset_controllables ()
}
std::shared_ptr<Controllable>
GenericMidiControlProtocol::lookup_controllable (const string & str) const
GenericMidiControlProtocol::lookup_controllable (const string & str, MIDIControllable& mc) const
{
std::shared_ptr<Controllable> c;
@ -1394,6 +1394,7 @@ GenericMidiControlProtocol::lookup_controllable (const string & str) const
if (c) {
DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("found controllable \"%1\"\n", c->name()));
mc.bind_remap (r);
} else {
DEBUG_TRACE (DEBUG::GenericMidi, "no controllable found\n");
}