Browse Source

Merge e6d860041a into f581516635

pull/389/merge
Robin Gareus GitHub 10 months ago
parent
commit
fd1ba57de4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 12 deletions
  1. +4
    -12
      distrho/src/DistrhoPluginVST3.cpp

+ 4
- 12
distrho/src/DistrhoPluginVST3.cpp View File

@@ -2823,6 +2823,7 @@ private:

// d_debug("setAudioBusArrangement %d %d | %d %lx", (int)isInput, numBuses, busId, arr);

size_t nth_speaker = 0;
for (uint32_t i=0; i<numPorts; ++i)
{
AudioPortWithBusId& port(fPlugin.getAudioPort(isInput, i));
@@ -2833,18 +2834,9 @@ private:
continue;
}

// get the only valid speaker arrangement for this bus, assuming enabled
const v3_speaker_arrangement earr = getSpeakerArrangementForAudioPort<isInput>(busInfo, port.groupId, busId);

// fail if host tries to map it to anything else
// FIXME should we allow to map speaker to zero as a way to disable it?
if (earr != arr /* && arr != 0 */)
{
ok = false;
continue;
}

enabledPorts[i] = arr != 0;
v3_speaker_arrangement earr = (uint64_t)1 << nth_speaker;
enabledPorts[i] = 0 != (arr & earr);
++nth_speaker;
}
}



Loading…
Cancel
Save