diff options
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r-- | libs/ardour/route_group.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc index 036aede02e..5b5a8f25b1 100644 --- a/libs/ardour/route_group.cc +++ b/libs/ardour/route_group.cc @@ -178,7 +178,7 @@ gain_t RouteGroup::get_min_factor (gain_t factor) { for (RouteList::iterator i = routes->begin(); i != routes->end(); ++i) { - gain_t const g = (*i)->amp()->gain(); + gain_t const g = (*i)->gain_control()->get_value(); if ((g + g * factor) >= 0.0f) { continue; @@ -198,7 +198,7 @@ gain_t RouteGroup::get_max_factor (gain_t factor) { for (RouteList::iterator i = routes->begin(); i != routes->end(); i++) { - gain_t const g = (*i)->amp()->gain(); + gain_t const g = (*i)->gain_control()->get_value(); // if the current factor woulnd't raise this route above maximum if ((g + g * factor) <= 1.99526231f) { |