From 44b2377e72c2cf42cb5743e1778d3e91fe1dd260 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 1 Oct 2024 19:24:36 +0200 Subject: [PATCH] VST3: Fix possible deadlock when using PSL extension for sends see also c5618f01d61 --- libs/ardour/vst3_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index 56f664d03b..fedd9141de 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -2964,12 +2964,12 @@ VST3PI::getContextInfoValue (double& value, FIDString id) if (0 == strcmp (id, ContextInfo::kMaxVolume)) { value = s->gain_control ()->upper (); } else if (0 == strcmp (id, ContextInfo::kMaxSendLevel)) { + value = 2.0; // Config->get_max_gain(); #ifdef MIXBUS - if (s->send_level_controllable (0)) { + if (s->send_enable_controllable (0)) { value = s->send_level_controllable (0)->upper (); // pow (10.0, .05 * 15.0); } #endif - value = 2.0; // Config->get_max_gain(); } else if (0 == strcmp (id, ContextInfo::kVolume)) { std::shared_ptr ac = s->gain_control (); value = ac->get_value (); // gain coefficient 0..2 (1.0 = 0dB)