mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a workaround to avoid a crash in broken JUCE 4.1 synth plug-ins
This commit is contained in:
parent
e09c2b65a1
commit
d0b628f0a6
1 changed files with 3 additions and 2 deletions
|
|
@ -1598,8 +1598,9 @@ private:
|
|||
|
||||
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)
|
||||
VstSpeakerConfiguration* inArr = inArrBlock.getData(), *outArr = outArrBlock.getData();
|
||||
if (effect->numInputChannels == 0 ||
|
||||
effect->dispatchFunction (effect, plugInOpcodeGetSpeakerArrangement, 0, reinterpret_cast<pointer_sized_int> (&inArr), &outArr, 0.0f) == 0)
|
||||
inArr = outArr = nullptr;
|
||||
|
||||
for (int dir = 0; dir < 2; ++dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue