MCPcopy Create free account
hub / github.com/audacity/audacity / SyncLockAdjust

Method SyncLockAdjust

libraries/lib-track/Track.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void Track::SyncLockAdjust(double oldT1, double newT1)
242{
243 const auto endTime = GetEndTime();
244 if (newT1 > oldT1 && oldT1 > endTime)
245 return;
246 if (newT1 > oldT1) {
247 auto cutChannels = Cut(oldT1, endTime);
248 Paste(newT1, *cutChannels);
249 }
250 else if (newT1 < oldT1)
251 // Remove from the track
252 Clear(newT1, oldT1);
253}
254
255bool Track::Any() const
256 { return true; }

Callers 12

ProcessPassMethod · 0.45
ProcessOneMethod · 0.45
DoRemovalMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessWithTimeWarperMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
SetRateMethod · 0.45
ReleaseMethod · 0.45
OnPasteFunction · 0.45

Calls 1

ClearFunction · 0.50

Tested by

no test coverage detected