1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 23:30:07 +02:00

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.
This commit is contained in:
David Bailes 2020-02-11 15:41:08 +00:00
parent 70bbfb69d5
commit 55e44cdc83

View File

@ -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()) {