1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 14:13:57 +01:00

Bug 1574 - Built-in generators may generate wrong length

This commit is contained in:
Steve Daulton
2017-01-18 22:31:07 +00:00
committed by James Crook
parent d9f7b3605f
commit a80556df2f

View File

@@ -1566,7 +1566,7 @@ bool Effect::ProcessTrack(int count,
genDur = mDuration;
}
genLength = sampleCount( left->GetRate() * genDur );
genLength = sampleCount((left->GetRate() * genDur) + 0.5); // round to nearest sample
delayRemaining = genLength;
cleared = true;