mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-12 06:37:52 +02:00
Reset the selection time after a preview.
Steve found that if you preview an effect and, say, cancel it before it finishes preparing, an apply will not modify all of the originally selected audio...just up to the preview length. This is very easy to reproduce using the Paulstretch on a 30 second clip...just click stop on the "Preparing preview" dialog and the click apply.
This commit is contained in:
parent
0cfabcf345
commit
80c216cccf
@ -487,11 +487,13 @@ void Effect::Preview(bool dryOnly)
|
||||
End();
|
||||
Init();
|
||||
}
|
||||
|
||||
// Restore original selection
|
||||
mT0 = t0save;
|
||||
mT1 = t1save;
|
||||
|
||||
if (bSuccess)
|
||||
{
|
||||
mT0 = t0save;
|
||||
mT1 = t1save;
|
||||
|
||||
WaveTrackArray playbackTracks;
|
||||
WaveTrackArray recordingTracks;
|
||||
// Probably not the same tracks post-processing, so can't rely on previous values of mixLeft & mixRight.
|
||||
|
Loading…
x
Reference in New Issue
Block a user