anki/qt/aqt
Damien Elmes f30853f5ed fix audio getting stuck (1/2)
The problem was caused by stop() doing a spin loop on the main
thread waiting for the completion signal. This prevented Qt's run
loop from executing, and so the completion signal was never delivered,
meaning longer files would time out.

Fixed by reworking the code so that stop() does not block at all -
instead it just sets the termination flag, and AVPlayer does not
unset current_player. Then when the completion callback fires, it
can advance to the next file.

TTS code still needs updating, and the lock should be safe to remove
as the start/stop logic is all on the main thread.
2020-03-15 09:26:31 +10:00
..
__init__.py Elaborate more on the use case and requirements for dialog registration 2020-03-07 17:43:21 +01:00
.gitignore basic night mode support 2020-01-23 17:27:07 +10:00
about.py add Tobias to contributors 2020-02-24 18:36:37 +10:00
addcards.py "unused" variable become optional. 2020-01-23 21:46:42 -08:00
addons.py Allow add-on dev to show personalized message. 2020-03-11 01:39:39 +01:00
browser.py make sure audio queue is cleared when transitioning between cards 2020-03-14 20:04:40 +10:00
clayout.py hook for initializing clayout 2020-03-01 11:42:41 +01:00
customstudy.py radioCram 2020-02-03 02:24:37 -08:00
deckbrowser.py imports 2020-03-14 22:10:27 +10:00
deckchooser.py correct missing french translation 2020-02-05 20:48:30 -08:00
deckconf.py Use a consistent function signature across load and save hooks 2020-02-24 15:47:48 +01:00
dyndeckconf.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
editcurrent.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
editor.py Fixed BeautifulSoup breaking string paths 2020-03-12 21:19:09 -03:00
errors.py restore mpv/mplayer missing warning that got lost in the av changes 2020-02-29 21:20:08 +10:00
exporting.py formatting fixes 2020-02-25 17:56:46 +10:00
fields.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
gui_hooks.py hook single_addon_selected 2020-03-09 12:45:10 +01:00
importing.py must close progress before displaying error, or user can't click it away 2020-03-14 18:42:03 +10:00
legacy.py add missing short argument to legacy fmtTimeSpan() 2020-02-26 20:36:59 +10:00
main.py hook debug_ran_hook 2020-03-06 15:01:22 +01:00
mediacheck.py add media check window title, use consistent formatting in template 2020-03-12 18:02:22 +10:00
mediasrv.py match both forward slash and os seperator 2020-02-29 12:36:10 +09:00
mediasync.py Use anki.consts.SYNC_BASE instead of hardcoded url 2020-03-06 18:55:07 +08:00
modelchooser.py correct missing french translation 2020-02-05 20:48:30 -08:00
models.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
mpv.py formatting fixes 2020-01-21 20:39:25 +10:00
overview.py fix typo 2020-02-19 17:46:12 +09:00
pinnedmodules.py pin fcntl, which went missing on Linux in a recent update 2020-02-19 19:59:31 +10:00
preferences.py fix wrong language selected in prefs screen 2020-03-11 14:58:57 +10:00
profiles.py migrate strings with trailing newlines to fluent 2020-02-27 20:36:40 +10:00
progress.py accept clicks on the progress dialog close button when updating 2020-02-17 08:40:17 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
qt.py fix cases where we used the wrong type sig to connect to gui hook 2020-01-16 07:53:12 +10:00
reviewer.py make sure audio queue is cleared when transitioning between cards 2020-03-14 20:04:40 +10:00
sound.py fix audio getting stuck (1/2) 2020-03-15 09:26:31 +10:00
stats.py Assume that web assets without a specified subpath are under /_anki 2020-02-15 15:03:43 +01:00
studydeck.py forceDefault to force_default 2020-02-22 04:01:42 -08:00
sync.py remove unused code 2020-02-17 08:40:16 +10:00
tagedit.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
taglimit.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
taskman.py Apply mypy improvements to aqt 2020-02-26 22:27:58 -05:00
theme.py Monkeytype qt/aqt/theme.py 2020-03-01 10:16:08 -05:00
toolbar.py Monkeytype qt/aqt/toolbar.py 2020-03-01 10:16:08 -05:00
tts.py fix _tidy_name() comment 2020-02-28 17:14:47 +10:00
update.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
utils.py FString -> TR 2020-02-27 12:25:19 +10:00
webview.py Monkeytype qt/aqt/webview.py 2020-03-01 10:16:08 -05:00
winpaths.py tweaking the folder names again 2020-01-03 07:48:38 +10:00