From d5d9ca8ce5edc3f6ac00b2c0d7fcc77b29709edf Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Wed, 16 Oct 2024 08:52:42 -0700 Subject: [PATCH] Use more correct loop point correction --- .gitignore | 1 + backends/playback/zsm/zsm_backend.cpp | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 9157dab..9eb9bf3 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ cmake-build-*/ .ctagsd *.rej .codelite/*.tags +*_build diff --git a/backends/playback/zsm/zsm_backend.cpp b/backends/playback/zsm/zsm_backend.cpp index 67d7938..1a0876a 100644 --- a/backends/playback/zsm/zsm_backend.cpp +++ b/backends/playback/zsm/zsm_backend.cpp @@ -60,13 +60,8 @@ void ZsmBackend::load(const char *filename) { ZsmCommand cmd = get_command(); size_t cur_pos = file->get_pos(); if (cur_pos >= this->loop_point && this->loop_pos < 0) { - if (cur_pos > this->loop_point) { - this->loop_point = prev_pos; - loop_pos = prev_time; - } else { - loop_pos = time; - this->loop_point = cur_pos; - } + loop_pos = time; + this->loop_point = cur_pos; } if (cmd.id == ZsmEOF) { break;