mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Fix TTS not working properly with auto advance (#2874)
* Fix TTS not working properly with auto advance * Restore cb() call in error path (dae)
This commit is contained in:
parent
5daafef5e6
commit
80d58728d5
1 changed files with 2 additions and 6 deletions
|
@ -257,11 +257,9 @@ class MacTTSFilePlayer(MacTTSPlayer):
|
|||
# inject file into the top of the audio queue
|
||||
from aqt.sound import av_player
|
||||
|
||||
av_player.current_player = None
|
||||
av_player.insert_file(self.tmppath)
|
||||
|
||||
# then tell player to advance, which will cause the file to be played
|
||||
cb()
|
||||
|
||||
|
||||
# Windows support
|
||||
##########################################################################
|
||||
|
@ -612,7 +610,5 @@ if is_win:
|
|||
# inject file into the top of the audio queue
|
||||
from aqt.sound import av_player
|
||||
|
||||
av_player.current_player = None
|
||||
av_player.insert_file(self.tmppath)
|
||||
|
||||
# then tell player to advance, which will cause the file to be played
|
||||
cb()
|
||||
|
|
Loading…
Reference in a new issue