MCU: update controls when EQ type changes

This commit is contained in:
Franke Burgarino 2025-07-29 23:11:20 +02:00 committed by Robin Gareus
parent 0742fd8563
commit 0fc28d3872
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 11 additions and 0 deletions

View file

@ -233,6 +233,8 @@ Strip::set_stripable (std::shared_ptr<Stripable> r, bool /*with_messages*/)
_stripable->solo_control()->Changed.connect (stripable_connections, MISSING_INVALIDATOR, std::bind (&Strip::notify_solo_changed, this), ui_context());
_stripable->mute_control()->Changed.connect(stripable_connections, MISSING_INVALIDATOR, std::bind (&Strip::notify_mute_changed, this), ui_context());
_stripable->MappedControlsChanged.connect (stripable_connections, MISSING_INVALIDATOR, std::bind (&Strip::notify_eq_type_changed, this), ui_context());
std::shared_ptr<AutomationControl> pan_control = _stripable->pan_azimuth_control();
if (pan_control) {
pan_control->Changed.connect(stripable_connections, MISSING_INVALIDATOR, std::bind (&Strip::notify_panner_azi_changed, this, false), ui_context());
@ -346,6 +348,14 @@ Strip::notify_record_enable_changed ()
}
}
void
Strip::notify_eq_type_changed ()
{
if (_stripable) {
_surface->mcp().MackieControlProtocol::redisplay_subview_mode();
}
}
void
Strip::notify_stripable_deleted ()
{

View file

@ -155,6 +155,7 @@ private:
void notify_solo_changed ();
void notify_mute_changed ();
void notify_record_enable_changed ();
void notify_eq_type_changed ();
void notify_gain_changed (bool force_update = true);
void notify_property_changed (const PBD::PropertyChange&);
void notify_panner_azi_changed (bool force_update = true);