mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-29 16:33:14 +01:00
VST3: amend 45e53ea80, multi-channel instrument fixes
This commit is contained in:
parent
f48a2bcdab
commit
3d84f117b9
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue