diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-01 17:59:17 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-01 17:59:17 +0000 |
commit | 4a33f70206d991102a8aba1bb0e2b926666d5741 (patch) | |
tree | 8c35988959a3fcea8d31ad986a0a675ab298ae9d | |
parent | 8f3a31c61a141b7e24fb379e8eb37c19c7643ba5 (diff) |
fix from carl so that switching into write automation mode doesn't reset gain levels
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5299 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/io.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 7d9734d6d6..ad376628db 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -2584,8 +2584,11 @@ IO::set_gain_automation_state (AutoState state) changed = true; last_automation_snapshot = 0; _gain_automation_curve.set_automation_state (state); - - if (state != Off) { + + /* don't reset gain if we're moving to Off or Write mode; + if we're moving to Write, the user may have manually set up gains + that they don't want to lose */ + if (state != Off && state != Write) { set_gain (_gain_automation_curve.eval (_session.transport_frame()), this); } } |