1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Fix for bug #922.

This commit is contained in:
Leland Lucius 2015-04-27 20:17:13 -05:00
parent d7819f0792
commit a24adb59d9

View File

@ -1839,11 +1839,15 @@ bool VSTEffect::ProcessFinalize()
sampleCount VSTEffect::ProcessBlock(float **inBlock, float **outBlock, sampleCount blockLen)
{
// Go let the plugin moleste the samples
callProcessReplacing(inBlock, outBlock, blockLen);
// Only call the effect if there's something to do...some do not like zero-length block
if (blockLen)
{
// Go let the plugin moleste the samples
callProcessReplacing(inBlock, outBlock, blockLen);
// And track the position
mTimeInfo.samplePos += ((double) blockLen / mTimeInfo.sampleRate);
// And track the position
mTimeInfo.samplePos += ((double) blockLen / mTimeInfo.sampleRate);
}
return blockLen;
}