1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-05 03:03:10 +01: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

@@ -122,7 +122,9 @@ void TimeTrack::Paste(double t, const Track * src)
// THROW_INCONSISTENCY_EXCEPTION; // ?
return;
mEnvelope->Paste(t, static_cast<const TimeTrack*>(src)->mEnvelope.get());
auto sampleTime = 1.0 / GetActiveProject()->GetRate();
mEnvelope->Paste
(t, static_cast<const TimeTrack*>(src)->mEnvelope.get(), sampleTime);
}
void TimeTrack::Silence(double t0, double t1)