summaryrefslogtreecommitdiff
path: root/libs/ardour/route_group.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /libs/ardour/route_group.cc
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r--libs/ardour/route_group.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc
index 26612226a7..5cfc1fb3d0 100644
--- a/libs/ardour/route_group.cc
+++ b/libs/ardour/route_group.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2000-2002 Paul Davis
+ Copyright (C) 2000-2002 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -68,9 +68,9 @@ RouteGroup::remove_when_going_away (Route *r)
{
remove (r);
}
-
+
int
-RouteGroup::remove (Route *r)
+RouteGroup::remove (Route *r)
{
list<Route *>::iterator i;
@@ -88,7 +88,7 @@ gain_t
RouteGroup::get_min_factor(gain_t factor)
{
gain_t g;
-
+
for (list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
g = (*i)->amp()->gain();
@@ -97,9 +97,9 @@ RouteGroup::get_min_factor(gain_t factor)
if ( g <= 0.0000003f )
return 0.0f;
-
+
factor = 0.0000003f/g - 1.0f;
- }
+ }
return factor;
}
@@ -107,14 +107,14 @@ gain_t
RouteGroup::get_max_factor(gain_t factor)
{
gain_t g;
-
+
for (list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
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)
return 0.0f;
@@ -136,7 +136,7 @@ RouteGroup::get_state (void)
return *node;
}
-int
+int
RouteGroup::set_state (const XMLNode& node)
{
const XMLProperty *prop;
@@ -152,7 +152,7 @@ RouteGroup::set_state (const XMLNode& node)
if ((prop = node.property ("properties")) != 0) {
_properties = Property (string_2_enum (prop->value(), _properties));
}
-
+
return 0;
}
@@ -200,7 +200,7 @@ RouteGroup::set_hidden (bool yn, void *src)
_flags = Flag (_flags & ~Active);
}
} else {
- _flags = Flag (_flags & ~Hidden);
+ _flags = Flag (_flags & ~Hidden);
if (Config->get_hiding_groups_deactivates_groups()) {
_flags = Flag (_flags | Active);
}
@@ -210,8 +210,8 @@ RouteGroup::set_hidden (bool yn, void *src)
}
void
-RouteGroup::audio_track_group (set<AudioTrack*>& ats)
-{
+RouteGroup::audio_track_group (set<AudioTrack*>& ats)
+{
for (list<Route*>::iterator i = routes.begin(); i != routes.end(); ++i) {
AudioTrack* at = dynamic_cast<AudioTrack*>(*i);
if (at) {
@@ -238,7 +238,7 @@ RouteGroup::make_subgroup ()
for (list<Route*>::iterator i = routes.begin(); i != routes.end(); ++i) {
nin = max (nin, (*i)->output()->n_ports().n_audio());
}
-
+
try {
/* use master bus etc. to determine default nouts */
rl = _session.new_audio_route (nin, 2, 0, 1);
@@ -250,7 +250,7 @@ RouteGroup::make_subgroup ()
subgroup_bus->set_name (_name);
boost::shared_ptr<Bundle> bundle = subgroup_bus->input()->bundle ();
-
+
for (list<Route*>::iterator i = routes.begin(); i != routes.end(); ++i) {
(*i)->output()->disconnect (this);
(*i)->output()->connect_ports_to_bundle (bundle, this);