mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix stutter when multiple audio files on card on windows
setting playlist pos to 0 was causing half-played sound to restart
This commit is contained in:
parent
880243c361
commit
b6972a22e8
1 changed files with 1 additions and 3 deletions
|
@ -92,9 +92,7 @@ class MpvManager(MPV):
|
||||||
|
|
||||||
def queueFile(self, file):
|
def queueFile(self, file):
|
||||||
path = os.path.join(os.getcwd(), file)
|
path = os.path.join(os.getcwd(), file)
|
||||||
self.command("loadfile", path, "append")
|
self.command("loadfile", path, "append-play")
|
||||||
self.set_property("playlist-pos", 0)
|
|
||||||
self.set_property("pause", False)
|
|
||||||
|
|
||||||
def clearQueue(self):
|
def clearQueue(self):
|
||||||
self.command("stop")
|
self.command("stop")
|
||||||
|
|
Loading…
Reference in a new issue