fix seek in sax

This commit is contained in:
j 2024-03-22 14:51:08 +01:00
parent 19b54d57cb
commit a6479d1746
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ class Sync(Thread):
now = datetime.now()
offset = (now - datetime.strptime(now.strftime(fmt), fmt)).total_seconds()
if self.sax:
self.sax.wait_until_playing()
self.sax.seek(offset, 'absolute', 'exact')
self.sax.pause = True
position = 0