File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1839,11 +1839,15 @@ bool VSTEffect::ProcessFinalize()
1839
1839
1840
1840
sampleCount VSTEffect::ProcessBlock (float **inBlock, float **outBlock, sampleCount blockLen)
1841
1841
{
1842
- // Go let the plugin moleste the samples
1843
- callProcessReplacing (inBlock, outBlock, blockLen);
1842
+ // Only call the effect if there's something to do...some do not like zero-length block
1843
+ if (blockLen)
1844
+ {
1845
+ // Go let the plugin moleste the samples
1846
+ callProcessReplacing (inBlock, outBlock, blockLen);
1844
1847
1845
- // And track the position
1846
- mTimeInfo .samplePos += ((double ) blockLen / mTimeInfo .sampleRate );
1848
+ // And track the position
1849
+ mTimeInfo .samplePos += ((double ) blockLen / mTimeInfo .sampleRate );
1850
+ }
1847
1851
1848
1852
return blockLen;
1849
1853
}
You can’t perform that action at this time.
0 commit comments