1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

VST3 Host: Avoid reading from non-existent buses

This commit is contained in:
reuk 2023-02-23 19:39:52 +00:00
parent 3d09a98826
commit d073a7e8ca
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -2743,7 +2743,7 @@ public:
{
const auto& requested = layouts.getChannelSet (isInput, i);
if (const auto arr = getVst3SpeakerArrangement (requested.isDisabled() ? getBus (true, i)->getLastEnabledLayout() : requested))
if (const auto arr = getVst3SpeakerArrangement (requested.isDisabled() ? getBus (isInput, i)->getLastEnabledLayout() : requested))
result.push_back (*arr);
else
return {};