mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 14:13:32 +02:00
Bug2586: .aup with envelopes in wave tracks should import correctly
This commit is contained in:
@@ -213,6 +213,7 @@ private:
|
||||
|
||||
WaveTrack *mWaveTrack;
|
||||
WaveClip *mClip;
|
||||
std::vector<WaveClip *> mClips;
|
||||
|
||||
ProgressResult mUpdateResult;
|
||||
TranslatableString mErrorMsg;
|
||||
@@ -367,6 +368,9 @@ ProgressResult AUPImportFileHandle::Import(WaveTrackFactory *WXUNUSED(trackFacto
|
||||
processed += fi.len;
|
||||
}
|
||||
|
||||
for (auto pClip : mClips)
|
||||
pClip->UpdateEnvelopeTrackLen();
|
||||
|
||||
wxASSERT( mUpdateResult == ProgressResult::Success );
|
||||
|
||||
// If the active project is "dirty", then bypass the below updates as we don't
|
||||
@@ -1031,6 +1035,7 @@ bool AUPImportFileHandle::HandleWaveClip(XMLTagHandler *&handler)
|
||||
}
|
||||
|
||||
mClip = static_cast<WaveClip *>(handler);
|
||||
mClips.push_back(mClip);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user