Tidy formatting.

git-svn-id: svn://localhost/ardour2/branches/3.0@10031 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-08-30 11:32:40 +00:00
parent 7d32cf3813
commit e2c31850e3

View file

@ -198,12 +198,14 @@ 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;