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:
parent
d7819f0792
commit
a24adb59d9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user