VST3: amend 45e53ea80, multi-channel instrument fixes

This commit is contained in:
Robin Gareus 2026-01-28 21:59:42 +01:00
parent f48a2bcdab
commit 3d84f117b9
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -2348,6 +2348,9 @@ VST3PI::request_bus_layout (uint32_t in, uint32_t aux_in, uint32_t out)
int32_t const n_chn = _bus_channel_cnt_in[bn];
Vst::SpeakerArrangement s = sa;
if (n_chn > 0) {
s &= ((uint64_t)1 << n_chn) - 1;
}
DEBUG_TRACE (DEBUG::VST3Config, string_compose ("VST3PI::request_bus_layout bus-width = %1 ; in[%2] = %3%4 \n", n_chn, bn, std::hex, s));
sa_in.push_back (s);
@ -2374,6 +2377,10 @@ VST3PI::request_bus_layout (uint32_t in, uint32_t aux_in, uint32_t out)
Vst::SpeakerArrangement s = sa;
if (n_chn > 0) {
s &= ((uint64_t)1 << n_chn) - 1;
}
DEBUG_TRACE (DEBUG::VST3Config, string_compose ("VST3PI::request_bus_layout bus-width = %1 ; out[%2] = %3%4 \n", n_chn, bn, std::hex, s));
sa_out.push_back (s);
if (n_chn > 0) {