diff --git a/source/synthDrivers/sapi5.py b/source/synthDrivers/sapi5.py index ce04467bfe..bc70db39cd 100644 --- a/source/synthDrivers/sapi5.py +++ b/source/synthDrivers/sapi5.py @@ -120,7 +120,7 @@ def IStream_RemoteSeek( if dwOrigin == 1 and dlibMove.QuadPart == 0: # SAPI is querying the current position. if plibNewPosition: - plibNewPosition.QuadPart = self._writtenBytes + plibNewPosition[0].QuadPart = self._writtenBytes return hresult.S_OK return hresult.E_NOTIMPL @@ -194,13 +194,13 @@ def Bookmark(self, streamNum: int, pos: int, bookmark: str, bookmarkId: int): def EndStream(self, streamNum: int, pos: int): synth = self.synthRef() + synth.player.idle() # trigger all untriggered bookmarks if streamNum in synth._streamBookmarks: for bookmark in synth._streamBookmarks[streamNum]: synthIndexReached.notify(synth=synth, index=bookmark) del synth._streamBookmarks[streamNum] synth.isSpeaking = False - synth.player.idle() synthDoneSpeaking.notify(synth=synth) def onIndexReached(self, streamNum: int, index: int):