From 4b7473f7d7575c639ba979f4f5161edb06724bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Wed, 19 Jun 2024 22:15:13 +0200 Subject: [PATCH] Reset beat count when transport is resumed --- sardine_core/clock/link_clock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sardine_core/clock/link_clock.py b/sardine_core/clock/link_clock.py index 0ab80ac1..1a332abe 100644 --- a/sardine_core/clock/link_clock.py +++ b/sardine_core/clock/link_clock.py @@ -10,7 +10,7 @@ __all__ = ("LinkClock",) -DEBUG = False +DEBUG = True class LinkClock(BaseThreadedLoopMixin, BaseClock): @@ -246,3 +246,4 @@ def hook(self, event: str, *args): elif event == "resume" and not self._playing: self._last_capture.setIsPlaying(True, self._link_time) self._link.commitSessionState(self._last_capture) + self.beat = 0