From 2698b23f824fdce28934dd30850906e02352e396 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 17 Jul 2023 20:48:45 +0200 Subject: [PATCH] VST3: try an alternative approach use kMono as flag, not arrangement See also 920a6a46c35 and 445e5162fde. --- 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 3dca859f9b..5302be3a38 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -2211,7 +2211,7 @@ VST3PI::enable_io (std::vector const& ins, std::vector const& outs) cnt += n_chn; /* special case for Left only == Mono */ if (sa == 1 /*Vst::SpeakerArr::kSpeakerL */) { - sa = Vst::SpeakerArr::kMono; /* 1 << 19 */ + sa |= Vst::SpeakerArr::kMono; /* 1 << 19 */ } DEBUG_TRACE (DEBUG::VST3Config, string_compose ("VST3PI::enable_io: activateBus (kAudio, kInput, %1, %2) used-chn: %3 spk-arr: %4\n", sa_in.size (), enable, _bus_info_in[sa_in.size ()].n_used_chn, std::hex, sa)); @@ -2235,7 +2235,7 @@ VST3PI::enable_io (std::vector const& ins, std::vector const& outs) cnt += n_chn; /* special case for Left only == Mono */ if (sa == 1 /*Vst::SpeakerArr::kSpeakerL */) { - sa = Vst::SpeakerArr::kMono; /* 1 << 19 */ + sa |= Vst::SpeakerArr::kMono; /* 1 << 19 */ } DEBUG_TRACE (DEBUG::VST3Config, string_compose ("VST3PI::enable_io: activateBus (kAudio, kOutput, %1, %2) used-chn: %3 spk-arr: %4\n", sa_out.size (), enable, _bus_info_out[sa_out.size ()].n_used_chn, std::hex, sa)); _component->activateBus (Vst::kAudio, Vst::kOutput, sa_out.size (), enable);