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

Method CapturedInterval

src/tracks/ui/TimeShiftHandle.cpp:379–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379const ChannelGroupInterval *ClipMoveState::CapturedInterval() const
380{
381 auto pTrack = mCapturedTrack.get();
382 if (pTrack) {
383 auto iter = shifters.find(pTrack);
384 if (iter != shifters.end()) {
385 auto &pShifter = iter->second;
386 if (pShifter) {
387 auto &intervals = pShifter->MovingIntervals();
388 if (!intervals.empty())
389 return intervals[0].get();
390 }
391 }
392 }
393 return nullptr;
394}
395
396double ClipMoveState::DoSlideHorizontal(double desiredSlideAmount)
397{

Callers 2

ClickMethod · 0.80
AdjustToSnapFunction · 0.80

Calls 4

getMethod · 0.45
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected