From 55e44cdc83c1e24353d848e290f818226d8a00fb Mon Sep 17 00:00:00 2001 From: David Bailes Date: Tue, 11 Feb 2020 15:41:08 +0000 Subject: [PATCH] Playback cursor jitter when scrubbing backwards Currently the jitter in the playback cursor is worse when scrubbing backwards than forwards. Fix: In AudioIOBase::PlaybackSchedule::AdvancedTrackTime() in the line: time += realElapsed * speed; realElapsed is negative when scrubbing backwards, so need fabs(speed) rather than just speed. --- src/AudioIOBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AudioIOBase.cpp b/src/AudioIOBase.cpp index c65f393e5..a081053da 100644 --- a/src/AudioIOBase.cpp +++ b/src/AudioIOBase.cpp @@ -1275,7 +1275,7 @@ double AudioIOBase::PlaybackSchedule::AdvancedTrackTime( } while ( true ); } else { - time += realElapsed * speed; + time += realElapsed * fabs(speed); // Wrap to start if looping if (Looping()) {