mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-30 15:18:42 +02:00
AUP3: Wrap effect processing in a transaction
This is solely for performance reasons and has nothing at all to do with recoverability.
This commit is contained in:
parent
5fe26bc738
commit
7e9a3f49b8
@ -1223,6 +1223,11 @@ bool Effect::DoEffect(double projectRate,
|
||||
mProjectRate = projectRate;
|
||||
mTracks = list;
|
||||
|
||||
// This is for performance purposes only, no additional recovery implied
|
||||
auto &pProject = *const_cast<AudacityProject*>(FindProject()); // how to remove this const_cast?
|
||||
auto &pIO = ProjectFileIO::Get(pProject);
|
||||
AutoCommitTransaction trans(pIO, "Effect");
|
||||
|
||||
// Update track/group counts
|
||||
CountWaveTracks();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user