FP8: use proper API to detect automation-playback
authorRobin Gareus <robin@gareus.org>
Tue, 13 Jun 2017 14:07:20 +0000 (16:07 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 13 Jun 2017 16:09:53 +0000 (18:09 +0200)
The custom code didn't take touch + touching into account when
another surface was touching automation.

libs/surfaces/faderport8/fp8_strip.cc

index 21c8affafbca68a2a732ed4b6e4a083376db2c39..d9d3fd7ba8038cafce857928784b0465c4e961a0 100644 (file)
@@ -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