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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user