| 349 | } |
| 350 | |
| 351 | void TrackeditActionsController::trackSplit(const ActionData &args) |
| 352 | { |
| 353 | IF_ASSERT_FAILED(args.count() == 1) { |
| 354 | return; |
| 355 | } |
| 356 | |
| 357 | TrackId trackIdToSplit = args.arg<TrackId>(0); |
| 358 | if (trackIdToSplit == -1) { |
| 359 | return; |
| 360 | } |
| 361 | |
| 362 | secs_t playbackPosition = globalContext()->playbackState()->playbackPosition(); |
| 363 | |
| 364 | dispatcher()->dispatch(TRACK_SPLIT_AT, ActionData::make_arg2<trackedit::TrackId, secs_t>(trackIdToSplit, playbackPosition)); |
| 365 | } |
| 366 | |
| 367 | void TrackeditActionsController::trackSplitAt(const ActionData& args) |
| 368 | { |
nothing calls this directly
no test coverage detected