1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-24 16:20:05 +02:00

Effect.cpp: fix preview for tracks with leading whitespace

This commit is contained in:
mchinen 2012-03-03 21:14:31 +00:00
parent 3947b25b9f
commit 2ce94c6647

View File

@ -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();