From f87433ac5317de01bbf3322b6c109fe59027ab7e Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 22 Mar 2016 13:21:36 -0400 Subject: [PATCH] Bug1084: Restore the fix, while also keeping the crash bug 1242 fixed. --- src/effects/VST/VSTEffect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/VST/VSTEffect.cpp b/src/effects/VST/VSTEffect.cpp index d1fc1d871..1324d325b 100644 --- a/src/effects/VST/VSTEffect.cpp +++ b/src/effects/VST/VSTEffect.cpp @@ -1437,10 +1437,10 @@ bool VSTEffect::RealtimeAddProcessor(int numChannels, float sampleRate) { void *chunk = NULL; - clen = (int) callDispatcher(effGetChunk, 0, 0, &chunk, 0.0); // get master's chunk, for the whole BANK + clen = (int) callDispatcher(effGetChunk, 1, 0, &chunk, 0.0); // get master's chunk, for the program only if (clen != 0) { - slave->callSetChunk(false, clen, chunk); // copy state to slave, for the whole BANK + slave->callSetChunk(true, clen, chunk); // copy state to slave, for the program only } }