mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +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)
|
sampleCount VSTEffect::ProcessBlock(float **inBlock, float **outBlock, sampleCount blockLen)
|
||||||
{
|
{
|
||||||
// Go let the plugin moleste the samples
|
// Only call the effect if there's something to do...some do not like zero-length block
|
||||||
callProcessReplacing(inBlock, outBlock, blockLen);
|
if (blockLen)
|
||||||
|
{
|
||||||
|
// Go let the plugin moleste the samples
|
||||||
|
callProcessReplacing(inBlock, outBlock, blockLen);
|
||||||
|
|
||||||
// And track the position
|
// And track the position
|
||||||
mTimeInfo.samplePos += ((double) blockLen / mTimeInfo.sampleRate);
|
mTimeInfo.samplePos += ((double) blockLen / mTimeInfo.sampleRate);
|
||||||
|
}
|
||||||
|
|
||||||
return blockLen;
|
return blockLen;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user