Skip to content

Commit

Permalink
feat: propagate sardine transport to link start/stop
Browse files Browse the repository at this point in the history
Sardine and Link should have two-way control over each other now
  • Loading branch information
thegamecracks committed Jun 18, 2024
1 parent 7c51f1a commit a5de026
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sardine_core/clock/link_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ def hook(self, event: str, *args):

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.
#
# if event in ("pause", "resume"):
# self._link.setIsPlaying(event == "resume", self._link_time)
# Broadcast start/stop from sardine transport methods if needed
if event == "pause" and self._playing:
self._link.setIsPlaying(False, self._link_time)
elif event == "resume" and not self._playing:
self._link.setIsPlaying(True, self._link_time)

0 comments on commit a5de026

Please sign in to comment.