| 377 | } |
| 378 | |
| 379 | const 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 | |
| 396 | double ClipMoveState::DoSlideHorizontal(double desiredSlideAmount) |
| 397 | { |