From b6972a22e8472b7f6eb6a56eba20449fa2e5568c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 10 Nov 2017 19:52:20 +1000 Subject: [PATCH] fix stutter when multiple audio files on card on windows setting playlist pos to 0 was causing half-played sound to restart --- anki/sound.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/anki/sound.py b/anki/sound.py index 5555c38da..c8e8db112 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -92,9 +92,7 @@ class MpvManager(MPV): def queueFile(self, file): path = os.path.join(os.getcwd(), file) - self.command("loadfile", path, "append") - self.set_property("playlist-pos", 0) - self.set_property("pause", False) + self.command("loadfile", path, "append-play") def clearQueue(self): self.command("stop")