1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-15 16:17:41 +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

@ -453,7 +453,7 @@ void Effect::Preview()
CountWaveTracks(); CountWaveTracks();
// Reset times // Reset times
t0 = 0.0; t0 = mixLeft->GetStartTime();
t1 = mixLeft->GetEndTime(); t1 = mixLeft->GetEndTime();
double t0save = mT0; double t0save = mT0;
@ -507,7 +507,7 @@ void Effect::Preview()
while (gAudioIO->IsStreamActive(token) && previewing == eProgressSuccess) { while (gAudioIO->IsStreamActive(token) && previewing == eProgressSuccess) {
::wxMilliSleep(100); ::wxMilliSleep(100);
previewing = mProgress->Update(gAudioIO->GetStreamTime(), t1); previewing = mProgress->Update(gAudioIO->GetStreamTime() - t0, t1 - t0);
} }
gAudioIO->StopStream(); gAudioIO->StopStream();