fix seek in sax
This commit is contained in:
parent
19b54d57cb
commit
a6479d1746
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue