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:
parent
b0a10d01bf
commit
a4d71cc374
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue