From 98769796d7c70bd22e952b2e3507f6d4fbd11267 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 30 Jul 2018 15:41:52 +0200 Subject: Fix VST callback and crash for some plugins Apparently "MasterUpdateDisplay" is for plugins to notify the host about state changes -- and not notficy the plugin's own UI. see also http://mixbus.harrisonconsoles.com/forum/thread-6229-post-37127.html --- libs/ardour/session_vst.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/ardour/session_vst.cc') diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index 37887fa03e..3252698bf4 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -492,8 +492,9 @@ intptr_t Session::vst_callback ( case audioMasterUpdateDisplay: SHOW_CALLBACK ("audioMasterUpdateDisplay"); // something has changed, update 'multi-fx' display - if (effect) { - effect->dispatcher(effect, effEditIdle, 0, 0, NULL, 0.0f); + /* TODO: consider emitting ParameterChangedExternally() for each ctrl input */ + if (session) { + session->set_dirty (); } return 0; -- cgit v1.2.3