summaryrefslogtreecommitdiff
path: root/libs/ardour/track.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-08-11 20:37:36 +0200
committerRobin Gareus <robin@gareus.org>2019-08-11 20:39:39 +0200
commitf08b90f36870249cc3e9ea089dd6594269c67148 (patch)
treecfc0fff0b2dd6a1b869ad7784b374bbe9ba5668a /libs/ardour/track.cc
parent9fb403546cc6d69736e3c9ea15d4d486db88203d (diff)
Fix auto capture alignment when bouncing metronome
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r--libs/ardour/track.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc
index 84bedca394..e80026742a 100644
--- a/libs/ardour/track.cc
+++ b/libs/ardour/track.cc
@@ -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