diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-25 11:47:21 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-25 11:47:21 -0500 |
commit | 22a20c7333a14ac0c4af20287d8643e07ff92903 (patch) | |
tree | 946191642602a879af20b137b0bc00e8af693022 /libs/ardour/route_group.cc | |
parent | 452e39f8a30a2cd435049922a13150b55f51ac0d (diff) |
change exposed type of various objects' gain controls; remove Amp::gain() as a shortcut
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) { |