mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Console 1: update API to match recent Mixbus
This commit is contained in:
parent
1ca53a99d9
commit
d82861954d
2 changed files with 10 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue