From cdc37fa7c0190623dab03be0c2e408fce3a8edd4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 5 Jan 2009 08:28:13 +0900 Subject: [PATCH] strip commented pygame from sound.py --- anki/sound.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/anki/sound.py b/anki/sound.py index 5c66c357d..12e839e3b 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -64,32 +64,6 @@ def playExternal(path): manager = QueueMonitor() manager.start() -# Pygame -########################################################################## - -# try: -# import pygame -# pygame.mixer.pre_init(44100,-16,2, 1024 * 3) -# pygame.mixer.init() -# soundsAvailable = True -# except: -# soundsAvailable = False -# print "Warning, pygame not available. No sounds will play." - -# def playPyGame(path): -# "Play a sound. Expects a unicode pathname." -# if not soundsAvailable: -# return -# path = path.encode(sys.getfilesystemencoding()) -# try: -# if pygame.mixer.music.get_busy(): -# pygame.mixer.music.queue(path) -# else: -# pygame.mixer.music.load(path) -# pygame.mixer.music.play() -# except pygame.error: -# return - # Mac audio support ##########################################################################