Fix auto capture alignment when bouncing metronome
authorRobin Gareus <robin@gareus.org>
Sun, 11 Aug 2019 18:37:36 +0000 (20:37 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 11 Aug 2019 18:39:39 +0000 (20:39 +0200)
libs/ardour/track.cc

index 84bedca3943805cdc487330b717bb706a67b0290..e80026742a8908fb02f6556f615775120e674e2e 100644 (file)
@@ -760,8 +760,20 @@ Track::set_align_choice_from_io ()
 
                        connections.clear ();
                }
+
+               /* Special case bounding the Metronome.
+                * Click-out is aligned to output and hence
+                * equivalent to a physical round-trip alike
+                * ExistingMaterial.
+                */
+               if (!have_physical && _session.click_io ()) {
+                       if (_session.click_io ()->connected_to (_input)) {
+                               have_physical = true;
+                       }
+               }
        }
 
+
 #ifdef MIXBUS
        // compensate for latency when bouncing from master or mixbus.
        // we need to use "ExistingMaterial" to pick up the master bus' latency