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

Added a workaround for old JUCE VST2 plug-ins which would not check the speaker arrangement for nullptr

This commit is contained in:
hogliux 2017-02-01 11:12:03 +00:00
parent b0a10d01bf
commit a4d71cc374

View file

@ -1596,7 +1596,9 @@ private:
{
BusesProperties returnValue;
VstSpeakerConfiguration* inArr = nullptr, *outArr = nullptr;
HeapBlock<VstSpeakerConfiguration> inArrBlock (1, true), outArrBlock (1, true);
VstSpeakerConfiguration* inArr = inArrBlock.getData(), *outArr = outArrBlock.getData();
if (effect->dispatchFunction (effect, plugInOpcodeGetSpeakerArrangement, 0, reinterpret_cast<pointer_sized_int> (&inArr), &outArr, 0.0f) == 0)
inArr = outArr = nullptr;