1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-09 22:53:55 +01:00

More uses of limitSampleBufferSize

This commit is contained in:
Paul Licameli
2016-08-26 22:02:58 -04:00
parent 156e77fcc7
commit 3b04bb1726
4 changed files with 8 additions and 20 deletions

View File

@@ -217,9 +217,7 @@ bool EffectClickRemoval::ProcessOne(int count, WaveTrack * track, sampleCount st
float *datawindow = new float[windowSize];
while ((s < len) && ((len - s) > windowSize/2))
{
auto block = idealBlockLen;
if (s + block > len)
block = len - s;
auto block = limitSampleBufferSize( idealBlockLen, len - s );
track->Get((samplePtr) buffer, floatSample, start + s, block);