Console 1: update API to match recent Mixbus

This commit is contained in:
Robin Gareus 2025-07-29 06:16:12 +02:00
parent 1ca53a99d9
commit d82861954d
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 10 additions and 12 deletions

View file

@ -932,7 +932,7 @@ Console1::map_eq_mode ()
if (!rt) {
return;
}
EQ_MODE current_eq_mode = EQ_MODE (rt->eq_mode_control() ? rt->eq_mode_control()->get_value() : -1);
EQ_MODE current_eq_mode = EQ_MODE (rt->eq_type_control() ? rt->eq_type_control()->get_value() : -1);
DEBUG_TRACE (DEBUG::Console1, string_compose ("map_eq_mode() - mode: %1\n", current_eq_mode));
if (current_eq_mode != strip_eq_mode) {
strip_eq_mode = current_eq_mode;

View file

@ -721,17 +721,15 @@ Console1::set_current_stripable (std::shared_ptr<Stripable> r)
stripable_connections, MISSING_INVALIDATOR, std::bind (&Console1::map_eq, this), this);
}
#ifdef MIXBUS
std::shared_ptr<ARDOUR::Route> rt = std::dynamic_pointer_cast<ARDOUR::Route>( _current_stripable );
if (rt)
{
DEBUG_TRACE(DEBUG::Console1, "Cast to Route ok \n");
if( rt->eq_mode_control() )
{
DEBUG_TRACE(DEBUG::Console1, "Control EQ_Mode available \n");
rt->eq_mode_control()->Changed.connect(
stripable_connections, MISSING_INVALIDATOR, std::bind(&Console1::map_eq_mode, this), this);
}
}
std::shared_ptr<ARDOUR::Route> rt = std::dynamic_pointer_cast<ARDOUR::Route>( _current_stripable );
if (rt) {
DEBUG_TRACE(DEBUG::Console1, "Cast to Route ok \n");
if (rt->eq_type_control()) {
DEBUG_TRACE(DEBUG::Console1, "Control EQ_Mode available \n");
rt->eq_type_control()->Changed.connect(
stripable_connections, MISSING_INVALIDATOR, std::bind(&Console1::map_eq_mode, this), this);
}
}
#endif
for (uint32_t i = 0; i < _current_stripable->eq_band_cnt (); ++i) {
if (_current_stripable->mapped_control (EQ_BandFreq, i)) {