mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
Tidy formatting.
git-svn-id: svn://localhost/ardour2/branches/3.0@10031 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7d32cf3813
commit
e2c31850e3
1 changed files with 5 additions and 3 deletions
|
|
@ -198,15 +198,17 @@ RouteGroup::get_max_factor(gain_t factor)
|
||||||
g = (*i)->amp()->gain();
|
g = (*i)->amp()->gain();
|
||||||
|
|
||||||
// if the current factor woulnd't raise this route above maximum
|
// if the current factor woulnd't raise this route above maximum
|
||||||
if ( (g+g*factor) <= 1.99526231f)
|
if ((g + g * factor) <= 1.99526231f) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// if route gain is already at peak, return 0.0f factor
|
// if route gain is already at peak, return 0.0f factor
|
||||||
if (g>=1.99526231f)
|
if (g >= 1.99526231f) {
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
}
|
||||||
|
|
||||||
// factor is calculated so that it would raise current route to max
|
// 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;
|
return factor;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue