mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 14:18:53 +02:00
Bug1242: fixed crash using VST plugin Ambience...
... Problem was a mismatch between a chunk retrieved for program only, but then copied to slave effect as for a bank. Plug-in choked on the GIGO. Fix makes chunk for bank both ways.
This commit is contained in:
parent
ff2ad783a0
commit
6f4c198771
@ -1437,10 +1437,10 @@ bool VSTEffect::RealtimeAddProcessor(int numChannels, float sampleRate)
|
||||
{
|
||||
void *chunk = NULL;
|
||||
|
||||
clen = (int) callDispatcher(effGetChunk, 1, 0, &chunk, 0.0);
|
||||
clen = (int) callDispatcher(effGetChunk, 0, 0, &chunk, 0.0); // get master's chunk, for the whole BANK
|
||||
if (clen != 0)
|
||||
{
|
||||
slave->callSetChunk(false, clen, chunk);
|
||||
slave->callSetChunk(false, clen, chunk); // copy state to slave, for the whole BANK
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user