mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Bug 1574 - Built-in generators may generate wrong length
This commit is contained in:
parent
d9f7b3605f
commit
a80556df2f
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user