1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 08:58:06 +02:00

Bug1084: Restore the fix, while also keeping the crash bug 1242 fixed.

This commit is contained in:
Paul Licameli 2016-03-22 13:21:36 -04:00
parent 6f4c198771
commit f87433ac53

View File

@ -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
}
}