diff options
author | Carl Hetherington <carl@carlh.net> | 2011-08-30 11:32:40 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-08-30 11:32:40 +0000 |
commit | e2c31850e33523868aa3fbe8de23e486d45a12bb (patch) | |
tree | 6dc48995ede794161326fddfb2d68eca1c63e311 /libs/ardour/route_group.cc | |
parent | 7d32cf3813b7145b98c86b59867092e04aa2621a (diff) |
Tidy formatting.
git-svn-id: svn://localhost/ardour2/branches/3.0@10031 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r-- | libs/ardour/route_group.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc index ef7e218d67..4e9baa082e 100644 --- a/libs/ardour/route_group.cc +++ b/libs/ardour/route_group.cc @@ -198,15 +198,17 @@ RouteGroup::get_max_factor(gain_t factor) g = (*i)->amp()->gain(); // if the current factor woulnd't raise this route above maximum - if ( (g+g*factor) <= 1.99526231f) + if ((g + g * factor) <= 1.99526231f) { continue; + } // if route gain is already at peak, return 0.0f factor - if (g>=1.99526231f) + if (g >= 1.99526231f) { return 0.0f; + } // factor is calculated so that it would raise current route to max - factor = 1.99526231f/g - 1.0f; + factor = 1.99526231f / g - 1.0f; } return factor; |