Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grimes2 committed Apr 28, 2023
1 parent 6dc8517 commit 0cf5dc3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions foo_preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ double total_length2;
double time_pause;
double preview_length_pause;
double remaining_length_pause;
double remaining_length_pause2;
double preview_length2;
double preview_length_percent2;
double track_length_bypass2;
Expand Down Expand Up @@ -300,16 +299,13 @@ class play_callback_preview : public play_callback_static
if (track_length_bypass2 < total_length2) {

if (paused) {
cfg_preview_length.get(preview_length);
preview_length_pause = atoi(preview_length);
time_pause = static_api_ptr_t<playback_control>()->playback_get_position();
remaining_length_pause = preview_length_pause + preview_start2 - time_pause;
remaining_length_pause2 = remaining_length_pause * 1000;
remaining_length_pause = (preview_length2 + preview_start2 - time_pause) * 1000;
KillTimer(NULL, ptr3);
}
else {
KillTimer(NULL, ptr3);
ptr3 = SetTimer(NULL, ID_TIMER3, (UINT)remaining_length_pause2, (TIMERPROC)PreviewTimer);
ptr3 = SetTimer(NULL, ID_TIMER3, (UINT)remaining_length_pause, (TIMERPROC)PreviewTimer);
}
}
}
Expand Down

0 comments on commit 0cf5dc3

Please sign in to comment.