Skip to content

Commit

Permalink
fix: accumulate time shift to prevent fast-forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
thegamecracks committed Jun 18, 2024
1 parent fc4c2aa commit 7c51f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sardine_core/clock/link_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def hook(self, event: str, *args):
# Don't allow time to jump forward, rewind instead.
delta -= self.beats_per_bar

self._time_shift = delta * self.beat_duration
self._time_shift += delta * self.beat_duration

# We could also try to broadcast start/stop from sardine transport methods,
# but we don't have a way to prevent _capture_link_info() from triggering this.
Expand Down

0 comments on commit 7c51f1a

Please sign in to comment.