Fix Pan automation when using "Touch"
authorRobin Gareus <robin@gareus.org>
Sun, 8 Dec 2019 22:52:48 +0000 (23:52 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 8 Dec 2019 22:52:48 +0000 (23:52 +0100)
Pan->touching was left uninitialized, and usually non-zero.
So pan automation was assumed to be currently touched,
and hence never interpolated.

libs/ardour/pannable.cc

index 3b26b26381a09edb2f5465dc526d63b046942c89..b750b0bc01f13416b322b358326c92e9077268e3 100644 (file)
@@ -48,6 +48,7 @@ Pannable::Pannable (Session& s)
        , pan_frontback_control (new PanControllable (s, "", this, PanFrontBackAutomation))
        , pan_lfe_control (new PanControllable (s, "", this, PanLFEAutomation))
        , _auto_state (Off)
+       , _touching (0)
        , _has_state (false)
        , _responding_to_control_auto_state_change (0)
 {