From 2c60151a45e452964f55a3940f3cff9f8b5b6bd1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 24 Apr 2009 02:16:54 +0900 Subject: [PATCH] ignore console input in mplayer --- anki/sound.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/sound.py b/anki/sound.py index e9919549b..e5324338c 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -53,12 +53,12 @@ queue = [] manager = None if sys.platform.startswith("win32"): - externalPlayer = ["mplayer.exe", "-ao", "win32", "-really-quiet"] + externalPlayer = ["mplayer.exe", "-ao", "win32", "-really-quiet", "-noconsolecontrols"] dir = os.path.dirname(os.path.abspath(sys.argv[0])) os.environ['PATH'] += ";" + dir os.environ['PATH'] += ";" + dir + "\\..\\dist" # for testing else: - externalPlayer = ["mplayer", "-really-quiet"] + externalPlayer = ["mplayer", "-really-quiet", "-noconsolecontrols"] # don't show box on windows if sys.platform == "win32":