David Bailes
2017-05-04 16:02:17 UTC
In trying to sort of the problems with rounding errors in the start and end
times of clips which are affecting the clip boundaries commands, I would
like to make a small change in WaveTrack::SplitAt(double t):
change the two lines:
sampleCount here = llrint(floor(((t - c->GetStartTime()) * mRate) + 0.5));
newClip->Offset(here.as_double()/(double)mRate);
to:
newClip->SetOffset(c->GetEndTime());
Can anyone see a problem with this change? Using Git, the first of the two
lines was last changed by RA, which I presume is Richard Ash.
thanks,
David.
times of clips which are affecting the clip boundaries commands, I would
like to make a small change in WaveTrack::SplitAt(double t):
change the two lines:
sampleCount here = llrint(floor(((t - c->GetStartTime()) * mRate) + 0.5));
newClip->Offset(here.as_double()/(double)mRate);
to:
newClip->SetOffset(c->GetEndTime());
Can anyone see a problem with this change? Using Git, the first of the two
lines was last changed by RA, which I presume is Richard Ash.
thanks,
David.