summaryrefslogtreecommitdiff
path: root/libs/ardour/amp.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-06-23 20:02:15 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-06-23 20:02:15 +0000
commitd13fdaa9d19e0db68ddcc792c3c3bb8ff661a72e (patch)
treea433b453635319ce91470d43189d3b88336ec488 /libs/ardour/amp.cc
parentd45dfa5cb602da24d2cbcbca00ff7c69ba18c4cb (diff)
make RouteGroup gain control work again ; fix what solo button label shows under different conditions; other miscellania
git-svn-id: svn://localhost/ardour2/branches/3.0@5262 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r--libs/ardour/amp.cc19
1 files changed, 2 insertions, 17 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc
index 154d909560..28edaf43a0 100644
--- a/libs/ardour/amp.cc
+++ b/libs/ardour/amp.cc
@@ -240,28 +240,13 @@ Amp::set_gain (gain_t val, void *src)
//cerr << "set desired gain to " << val << " when curgain = " << _gain_control->get_value () << endl;
if (src != _gain_control.get()) {
- _gain_control->set_value(val);
+ _gain_control->set_value (val);
// bit twisty, this will come back and call us again
// (this keeps control in sync with reality)
return;
}
- {
- // Glib::Mutex::Lock dm (declick_lock);
- _gain_control->set_float(val, false);
- }
-
- if (_session.transport_stopped()) {
- // _gain = val;
- }
-
- /*
- if (_session.transport_stopped() && src != 0 && src != this && _gain_control->automation_write()) {
- _gain_control->list()->add (_session.transport_frame(), val);
-
- }
- */
-
+ _gain_control->set_float(val, false);
_session.set_dirty();
}