1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Envelope::Paste takes a time tolerance argument

This commit is contained in:
Paul Licameli
2017-05-05 20:43:32 -04:00
parent 02fe963d23
commit 58e7a94264
4 changed files with 12 additions and 4 deletions

View File

@@ -734,7 +734,7 @@ void Envelope::CollapseRegion( double t0, double t1, double sampleDur )
// envelope point applies to the first sample, but the t=tracklen
// envelope point applies one-past the last actual sample.
// Rather than going to a .5-offset-index, we special case the framing.
void Envelope::Paste(double t0, const Envelope *e)
void Envelope::Paste(double t0, const Envelope *e, double sampleDur)
// NOFAIL-GUARANTEE
{
const bool wasEmpty = (this->mEnv.size() == 0);