From 34e2cf79138233ebd3f1994caa7656f1b7ca80ee Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 8 Jun 2014 17:19:10 +0200 Subject: [PATCH] fix 'use_latency_button' (broken in prev. commit) --- gtk2_ardour/engine_dialog.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 9429fe5bcc..4ea7511ee2 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -1813,6 +1813,17 @@ void EngineControl::use_latency_button_clicked () { if (_measure_midi) { +#if 0 // TODO + ARDOUR::MIDIDM* mididm = ARDOUR::AudioEngine::instance()->mididm (); + if (!mididm) { + return; + } + ARDOUR::framecnt_t frames_total = mididm->latency(); + ARDOUR::framecnt_t extra = frames_total - ARDOUR::AudioEngine::instance()->latency_signal_delay(); + uint32_t one_way = extra / 2; + // TODO assign to all or one specific device +#endif + } else { MTDM* mtdm = ARDOUR::AudioEngine::instance()->mtdm (); if (!mtdm) {