mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 08:10:05 +02:00
Effect.cpp: fix preview for tracks with leading whitespace
This commit is contained in:
parent
3947b25b9f
commit
2ce94c6647
@ -453,7 +453,7 @@ void Effect::Preview()
|
||||
CountWaveTracks();
|
||||
|
||||
// Reset times
|
||||
t0 = 0.0;
|
||||
t0 = mixLeft->GetStartTime();
|
||||
t1 = mixLeft->GetEndTime();
|
||||
|
||||
double t0save = mT0;
|
||||
@ -507,7 +507,7 @@ void Effect::Preview()
|
||||
|
||||
while (gAudioIO->IsStreamActive(token) && previewing == eProgressSuccess) {
|
||||
::wxMilliSleep(100);
|
||||
previewing = mProgress->Update(gAudioIO->GetStreamTime(), t1);
|
||||
previewing = mProgress->Update(gAudioIO->GetStreamTime() - t0, t1 - t0);
|
||||
}
|
||||
gAudioIO->StopStream();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user