From 23554fd1858cdcb7c9f5dafaee276795feadea16 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 13 Jun 2017 16:07:20 +0200 Subject: [PATCH] FP8: use proper API to detect automation-playback The custom code didn't take touch + touching into account when another surface was touching automation. --- libs/surfaces/faderport8/fp8_strip.cc | 6 +++--- 1 file 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