Move the cursor forward or backward, while paused or while playing.
| 349 | |
| 350 | // Move the cursor forward or backward, while paused or while playing. |
| 351 | void DoCursorMove( |
| 352 | AudacityProject &project, double seekStep, |
| 353 | wxLongLong &lastSelectionAdjustment) |
| 354 | { |
| 355 | if (ProjectAudioIO::Get( project ).IsAudioActive()) { |
| 356 | SeekWhenAudioActive(seekStep, lastSelectionAdjustment); |
| 357 | } |
| 358 | else |
| 359 | { |
| 360 | lastSelectionAdjustment = ::wxGetUTCTimeMillis(); |
| 361 | MoveWhenAudioInactive(project, seekStep, TIME_UNIT_SECONDS); |
| 362 | } |
| 363 | |
| 364 | ProjectHistory::Get( project ).ModifyState(false); |
| 365 | } |
| 366 | |
| 367 | void DoBoundaryMove(AudacityProject &project, int step, SeekInfo &info) |
| 368 | { |
no test coverage detected