diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp index 6e5665ed..00ede581 100644 --- a/distrho/src/DistrhoPluginVST3.cpp +++ b/distrho/src/DistrhoPluginVST3.cpp @@ -1027,19 +1027,37 @@ public: if (port.busId != ubusId) continue; + v3_speaker_arrangement arr; + switch (port.groupId) { case kPortGroupMono: - *speaker = V3_SPEAKER_M; + arr = V3_SPEAKER_M; break; case kPortGroupStereo: - *speaker = V3_SPEAKER_L | V3_SPEAKER_R; + arr = V3_SPEAKER_L | V3_SPEAKER_R; break; default: - *speaker = 0; + if (inputBuses.audio != 0 && ubusId == 0) + { + arr = 0x0; + for (uint32_t j=0; j