summaryrefslogtreecommitdiff
path: root/libs/surfaces/faderport8
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-13 16:07:20 +0200
committerRobin Gareus <robin@gareus.org>2017-06-13 18:09:53 +0200
commit23554fd1858cdcb7c9f5dafaee276795feadea16 (patch)
treedcd777f14dbb190edf4483df509eae5be6efd5ec /libs/surfaces/faderport8
parentfdb3df77860e6d39dac4e1b0b996c09fe067baf8 (diff)
FP8: use proper API to detect automation-playback
The custom code didn't take touch + touching into account when another surface was touching automation.
Diffstat (limited to 'libs/surfaces/faderport8')
-rw-r--r--libs/surfaces/faderport8/fp8_strip.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/surfaces/faderport8/fp8_strip.cc b/libs/surfaces/faderport8/fp8_strip.cc
index 21c8affafb..d9d3fd7ba8 100644
--- a/libs/surfaces/faderport8/fp8_strip.cc
+++ b/libs/surfaces/faderport8/fp8_strip.cc
@@ -449,10 +449,10 @@ FP8Strip::periodic_update_fader ()
return;
}
- ARDOUR::AutoState state = ac->automation_state();
- if (state == Touch || state == Play) {
- notify_fader_changed ();
+ if (!ac->automation_playback ()) {
+ return;
}
+ notify_fader_changed ();
}
void