From 0265f3f1e2f9c69c151331350f00bfb5a1be9492 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 15 Jan 2014 16:24:03 -0500 Subject: [PATCH] debug VST timeinfo callback --- libs/ardour/session_vst.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index 67e990e7fe..fa8e6aa42e 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -130,8 +130,12 @@ intptr_t Session::vst_callback ( // (see valid masks above), as some items may require extensive // conversions memset(&_timeInfo, 0, sizeof(_timeInfo)); + std::cerr << "VST get time callback\n"; if (session) { framepos_t now = session->transport_frame(); + + std::cerr << "\t@ " << now << std::endl; + _timeInfo.samplePos = now; _timeInfo.sampleRate = session->frame_rate(); _timeInfo.flags = 0; @@ -179,6 +183,7 @@ intptr_t Session::vst_callback ( } } + std::cerr << "\ttimeinfo valid = " << std::hex << _timeinfo.flags << std::dec << std::endl; return (long)&_timeInfo; case audioMasterProcessEvents: