fix seek in sax

This commit is contained in:
j 2024-03-22 14:51:08 +01:00
parent 19b54d57cb
commit a6479d1746

View file

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