1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

Bug2586: .aup with envelopes in wave tracks should import correctly

This commit is contained in:
Paul Licameli
2020-11-19 16:48:41 -05:00
parent 14c300c672
commit 6dea5434a6
2 changed files with 8 additions and 2 deletions

View File

@@ -1172,8 +1172,9 @@ void WaveClip::ConvertToSampleFormat(sampleFormat format,
/*! @excsafety{No-fail} */
void WaveClip::UpdateEnvelopeTrackLen()
{
mEnvelope->SetTrackLen
((mSequence->GetNumSamples().as_double()) / mRate, 1.0 / GetRate());
auto len = (mSequence->GetNumSamples().as_double()) / mRate;
if (len != mEnvelope->GetTrackLen())
mEnvelope->SetTrackLen(len, 1.0 / GetRate());
}
void WaveClip::TimeToSamplesClip(double t0, sampleCount *s0) const