diff options
author | Robin Gareus <robin@gareus.org> | 2016-06-25 02:23:56 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-06-25 02:23:56 +0200 |
commit | e9a8ccc7e2826d8fe91eff34ee8a0683a7f7aac6 (patch) | |
tree | 50b54d5b0c31caf97d80a739c182ad5a101ecec5 /libs/ardour/session_vst.cc | |
parent | 6a12022ccf96261d61dce06b8da6c3116fb289a1 (diff) |
major internal plugin & processor API change:
Pass current (latency compensated) cycle times to plugin.
This fixes time-reporting to plugins and also fixes automation
and when bouncing (the session->transport* is not valid) etc.
Diffstat (limited to 'libs/ardour/session_vst.cc')
-rw-r--r-- | libs/ardour/session_vst.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index 3ee5d5889c..4cce5219ac 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -200,8 +200,8 @@ intptr_t Session::vst_callback ( timeinfo->nanoSeconds = g_get_monotonic_time () * 1000; - if (session) { - framepos_t now = session->transport_frame(); + if (plug && session) { + framepos_t now = plug->transport_frame(); timeinfo->samplePos = now; timeinfo->sampleRate = session->frame_rate(); @@ -280,7 +280,7 @@ intptr_t Session::vst_callback ( newflags |= kVstTransportRecording; } - if (session->transport_speed () != 0.0f) { + if (plug->transport_speed () != 0.0f) { newflags |= kVstTransportPlaying; } |