1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00

Bug1272: correct progress indicator during mix-down export...

... Affected Mix and Render too.
This commit is contained in:
Paul Licameli 2016-01-26 18:59:33 -05:00
parent 17c9369286
commit ca6fbfad4d

View File

@ -680,9 +680,11 @@ sampleCount Mixer::Process(sampleCount maxToProcess)
double t = (double)mSamplePos[i] / (double)track->GetRate();
if (mT0 > mT1)
mTime = std::max(t, mT1);
// backwards (as possibly in scrubbing)
mTime = std::max(std::min(t, mTime), mT1);
else
mTime = std::min(t, mT1);
// forwards (the usual)
mTime = std::min(std::max(t, mTime), mT1);
}
if(mInterleaved) {
for(int c=0; c<mNumChannels; c++) {