diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-13 16:07:20 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-13 18:09:53 +0200 |
commit | 23554fd1858cdcb7c9f5dafaee276795feadea16 (patch) | |
tree | dcd777f14dbb190edf4483df509eae5be6efd5ec /libs/surfaces | |
parent | fdb3df77860e6d39dac4e1b0b996c09fe067baf8 (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')
-rw-r--r-- | libs/surfaces/faderport8/fp8_strip.cc | 6 |
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 |